This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/16286] value.string(length = x) broken for common variable length arrays idiom
- From: "asmwarrior at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 03 Dec 2013 01:52:57 +0000
- Subject: [Bug python/16286] value.string(length = x) broken for common variable length arrays idiom
- Auto-submitted: auto-generated
- References: <bug-16286-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16286
asmwarrior <asmwarrior at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asmwarrior at gmail dot com
--- Comment #2 from asmwarrior <asmwarrior at gmail dot com> ---
What about the case a struct instance is un-initilized or destroyed, which
means length has a random value (its value is >0). With your patch, a large
number of bytes will be allocated in xmalloc()? Refer to bug #12127, GDB just
crash.
--
You are receiving this mail because:
You are on the CC list for the bug.