This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5545] Potential buffer overflow in sunrpc/clnt_perr.c


------- Additional Comments From martin at gerbershagen-pfn dot de  2008-01-05 10:34 -------
Created an attachment (id=2173)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2173&action=view)
Patch to fix the problem.

The provided patch fixes the problem. The idea is to truncate the user supplied
msg to 128 bytes to leave enough room for the rpc message that is appended
afterwards and a strict control of the message end to avoid any buffer
overflow. The patch also works for the latest version of clnt_perr.c in glibc
2.7.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5545

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]