On Fri, Feb 5, 2010 at 9:24 AM, Cyril Hrubis <[email protected]> wrote:
> Hi!
> Attached patch fixes possible buffer oveflow in sem_getvalue tests (the buffer
> overflow happens when getpid() returns number that couldn't fit into buffer)
> and also cleans coding style.

1. Why 64?
2. It should be #define'd and/or sizeof should be used in snprintf
because they're fixed array buffers...

Thanks,
-Garrett

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to