On 03/09/2010 02:16 PM, VALETTE Eric RD-MAPS-REN wrote:
a free of an address returned by a non reentrant function could perfectly cause it (try the _r version with explicit buffer allocation)
Readding only the patch, the useage of the buffer returned by get_current_dir_name may be wrong: the allocated space is by no way equal to PATH_MAX+2 so any code making assumption on this may simply fail. I would copy the result in the static buffer and free cwd.

-- eric


*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************

Reply via email to