https://sourceware.org/bugzilla/show_bug.cgi?id=29707
Bug ID: 29707 Summary: binutils c++filt reads a file with the first character \x00, it will wait for input and cause the program to block. Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: fengzhengzhan at gmail dot com Target Milestone: --- 1) Overview: When the first character of the file is \x00, c++filt reads the file and then waits for input causing the file to block. If \x00 appears in other locations in the file, the program is not affected. 2) Steps to Reproduce: > [Attack Vectors] > 1. Download the crash file from https://github.com/fengzhengzhan/FzzVul > 2. Executing the Command Line with c++filt @c++filt/crash01_timeout > 3. The program will block. Thank you. 3) Actual Results: Reading the first character of the file causes the program to block and wait for input. 4) Expected Results: Reads the characters in the file and immediately returns the parsed symbols. 5) Build Date & Hardware: Build 2022-10-20 on ubuntu 20.04 6) Additional Information: I have provided manual tracking reports. cxxfilt.c:199:7 cxxfilt.c:210:3 cxxfilt.c:218:22 cxxfilt.c:219:7 cxxfilt.c:230:16 cxxfilt.c:232:9 cxxfilt.c:0:0 cxxfilt.c:242:11 cxxfilt.c:248:11 cxxfilt.c:253:7 cxxfilt.c:254:11 cxxfilt.c:255:2 cxxfilt.c:227:3 cxxfilt.c:230:16 cxxfilt.c:232:9 -- You are receiving this mail because: You are on the CC list for the bug.