[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

getenv / putenv usage in libjpeg(-turbo)



Hi,

Has anyone taken a look at the use of putenv/getenv in libjpeg-turbo
(old libjpeg62 also affected) ? AFAIK there is proper checking of the
env variables before use. But still it feels odd to call putenv then
getenv  from within a single library.
BTW, is glibc's getenv reentrant ? (the doc states: The implementation
of getenv() is not required to be reentrant.), which would make the
library not thread safe in some rare occasions.

Thanks for pointers,


Reply to: