lijiang1489 at 163 dot com
2018-10-16 20:48:21 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23785
Bug ID: 23785
Summary: Segmentation fault (restore non-existent-file binary)
Product: gdb
Version: 8.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: lijiang1489 at 163 dot com
Target Milestone: ---
In gdb8.x, in all targets, if users tried to restore a non-existent file using
gdb cmd "restore wkefjw binary", gdb crashed.
I have checked function “restore_binary_file()” in gdb/cli/cli-dump.c, it got
"file" from "gdb_fopen_cloexec()". In "gdb_fopen_cloexec()", it does not error
out when fopen() got a NULL file pointer.
Bug ID: 23785
Summary: Segmentation fault (restore non-existent-file binary)
Product: gdb
Version: 8.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: lijiang1489 at 163 dot com
Target Milestone: ---
In gdb8.x, in all targets, if users tried to restore a non-existent file using
gdb cmd "restore wkefjw binary", gdb crashed.
I have checked function “restore_binary_file()” in gdb/cli/cli-dump.c, it got
"file" from "gdb_fopen_cloexec()". In "gdb_fopen_cloexec()", it does not error
out when fopen() got a NULL file pointer.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.