Skip to content

ubuntu 24.04 x64 & gcc 13 #84

@QingruiHuang

Description

@QingruiHuang
Image

make
cc -c -Wall -Wextra -Wstrict-prototypes -Wshadow -Wpointer-arith -Wformat-security -Winit-self -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Wredundant-decls -Werror -O3 -funsigned-char -Iinclude/ -DUSE_STACK_SIZE=102400 -oobj/extern_md5.o src/extern_md5.c
cc -c -Wall -Wextra -Wstrict-prototypes -Wshadow -Wpointer-arith -Wformat-security -Winit-self -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Wredundant-decls -Werror -O3 -funsigned-char -Iinclude/ -DUSE_STACK_SIZE=102400 -oobj/extern_sha1.o src/extern_sha1.c
In function ‘SHA1Update’,
inlined from ‘SHA1Final’ at src/extern_sha1.c:248:2:
src/extern_sha1.c:227:25: error: ‘SHA1Transform’ reading 64 bytes from a region of size 0 [-Werror=stringop-overread]
227 | SHA1Transform(context->state, &data[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/extern_sha1.c:227:25: note: referencing argument 2 of type ‘const unsigned char[64]’
src/extern_sha1.c: In function ‘SHA1Final’:
src/extern_sha1.c:93:13: note: in a call to function ‘SHA1Transform’
93 | static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
| ^~~~~~~~~~~~~
In function ‘SHA1Update’,
inlined from ‘SHA1Final’ at src/extern_sha1.c:251:3:
src/extern_sha1.c:227:25: error: ‘SHA1Transform’ reading 64 bytes from a region of size 0 [-Werror=stringop-overread]
227 | SHA1Transform(context->state, &data[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/extern_sha1.c:227:25: note: referencing argument 2 of type ‘const unsigned char[64]’
src/extern_sha1.c: In function ‘SHA1Final’:
src/extern_sha1.c:93:13: note: in a call to function ‘SHA1Transform’
93 | static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:149: obj/extern_sha1.o] Error 1
u24@HUG:/mnt/e/GitHub/libhttp$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions