Another set of bugs:
Code:
../afl-clang-fast++ -DFORTIFY_SOURCE=2 -fstack-protector-all -fsanitize=undefined,address -fsanitize-trap=array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-size,returns-nonnull-attribute,shift-base,shift-exponent,signed-integer-overflow,vla-bound -fno-sanitize=alignment -Wno-unknown-pragmas -Wno-sign-compare -Wno-conversion -fomit-frame-pointer -fstrict-aliasing -fforce-addr -ffast-math -O3 -D_POSIX_ENVIRONMENT_ -DZ_HAVE_UNISTD_H -D__x86_64__ -I. src/Encoder.cpp -c -o src/Encoder.o
afl-clang-fast 1.94b by <lszekeres@google.com>
src/Encoder.cpp:2891:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete]
delete(inttable);
^
[]
src/Encoder.cpp:2859:16: note: allocated with 'new[]' here
int* inttable=new int[size];
Code:
../afl-clang-fast++ -DFORTIFY_SOURCE=2 -fstack-protector-all -fsanitize=undefined,address -fsanitize-trap=array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-size,returns-nonnull-attribute,shift-base,shift-exponent,signed-integer-overflow,vla-bound -fno-sanitize=alignment -Wno-unknown-pragmas -Wno-sign-compare -Wno-conversion -fomit-frame-pointer -fstrict-aliasing -fforce-addr -ffast-math -O3 -D_POSIX_ENVIRONMENT_ -DZ_HAVE_UNISTD_H -D__x86_64__ -I. src/MemBuffer.cpp -c -o src/MemBuffer.o
afl-clang-fast 1.94b by <lszekeres@google.com>
src/MemBuffer.cpp:254:7: error: assigning to 'size_t *' (aka 'unsigned long *') from incompatible type 'unsigned int *'
Size=new unsigned size_t[count];