You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A seg fault occurs at line 245 in fy-walk.h when the below code is provided a malformed input. This occurs because the value of exprl->type is passed into fy_path_expr_type_is_lparen, but this value is null.
==2556019==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x5555558ea988 bp 0x7fffffffd9b0 sp 0x7fffffffd8e0 T0)
==2556019==The signal is caused by a READ memory access.
==2556019==Hint: address points to the zero page.
#0 0x5555558ea988 in fy_path_expr_type_is_lparen /home/gabriel/fuzzing-trials/fyaml/lib_asan/src/lib/fy-walk.h:245:14
#1 0x5555558ea988 in evaluate_new /home/gabriel/fuzzing-trials/fyaml/lib_asan/src/lib/fy-walk.c:2973:8
#2 0x5555558ed91a in fy_path_parse_expression /home/gabriel/fuzzing-trials/fyaml/lib_asan/src/lib/fy-walk.c:3432:11
#3 0x5555558f050a in fy_path_parse_expr_from_string /home/gabriel/fuzzing-trials/fyaml/lib_asan/src/lib/fy-walk.c:3726:9
#4 0x5555558f0ae2 in fy_path_expr_build_from_string /home/gabriel/fuzzing-trials/fyaml/lib_asan/src/lib/fy-walk.c:3757:9
#5 0x555555744249 in main /home/gabriel/fuzzing-trials/fyaml/crashes/c2/rep.c:15:2
#6 0x7ffff765ed8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#7 0x7ffff765ee3f in __libc_start_main csu/../csu/libc-start.c:392:3
#8 0x55555566b3a4 in _start (/home/gabriel/fuzzing-trials/fyaml/crashes/c2/r.out+0x1173a4) (BuildId: 23a146cff164a5c61cd3f61690e4e52d6e950674)
The text was updated successfully, but these errors were encountered:
A seg fault occurs at line 245 in fy-walk.h when the below code is provided a malformed input. This occurs because the value of
exprl->type
is passed intofy_path_expr_type_is_lparen
, but this value isnull
.Test Environment
Ubuntu 22.04, 64bit
How to trigger
./filename poc
Version
Latest: 592ccc1
POC File
https://github.com/gabe-sherman/bug-pocs/blob/main/fyaml/c2
Address Sanitizer Output
The text was updated successfully, but these errors were encountered: