This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/15236] gdbserver write to linux memory with zero lengthcorrupts stack
- From: "jeremy.bennett at embecosm dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 06 Mar 2013 15:42:14 +0000
- Subject: [Bug server/15236] gdbserver write to linux memory with zero lengthcorrupts stack
- Auto-submitted: auto-generated
- References: <bug-15236-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15236
--- Comment #1 from jeremy.bennett at embecosm dot com 2013-03-06 15:42:14 UTC ---
Created attachment 6918
--> http://sourceware.org/bugzilla/attachment.cgi?id=6918
Patch to fix the problem
The attached patch returns successfully early if len = 0, before any stack
corruption can occur.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.