Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testcase generate with "csmith --float -s 8642168180452144185" ASAN compalint MemorySanitizer: use-of-uninitialized-value #135

Open
yansendao opened this issue Apr 25, 2021 · 1 comment

Comments

@yansendao
Copy link

yansendao commented Apr 25, 2021

test command:

clang -w -O0 -fsanitize=memory -I ~/software/csmith/include test.c -g3 && ./a.out

result:

==132==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0xaaaabb843ac4 in func_48 /home1/yansendao/history/issue/boole-issue1968/test.c:1136:9
    #1 0xaaaabb83e878 in func_39 /home1/yansendao/history/issue/boole-issue1968/test.c:882:42
    #2 0xaaaabb839900 in func_20 /home1/yansendao/history/issue/boole-issue1968/test.c:769:16
    #3 0xaaaabb82c5cc in func_2 /home1/yansendao/history/issue/boole-issue1968/test.c:227:115
    #4 0xaaaabb82be2c in func_1 /home1/yansendao/history/issue/boole-issue1968/test.c:208:17
    #5 0xaaaabb824fb8 in main /home1/yansendao/history/issue/boole-issue1968/test.c:1394:5
    #6 0xffffbc25108c in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x2408c)
    #7 0xaaaabb7b2dd0 in _start (/home1/yansendao/history/issue/boole-issue1968/a.out+0x27dd0)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /home1/yansendao/history/issue/boole-issue1968/test.c:1136:9 in func_48
Exiting

test.zip

/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: deddca6
 * Options:   --float -o test.c
 * Seed:      8642168180452144185
 */

#include <float.h>
@yansendao
Copy link
Author

creduce result:

int main() {
 int a = 0xFBCDA4Fp69;
 if (a)
   ;
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant