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...
> 

Just because I'm still not used to sizeof(array) (and had a little time for
creating this patch) will resend cleaner version soon.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to