The pointer which is returned by getenv()
should not be dereferenced after the next timing of the getenv()
call. The buffer pointed by the pointer might be overwritten. Therefore, the buffer should be copied immediately after getenv()
call.
The issue is described in ENV34-C.
HOW TO FIX color.cgetenv()
callscopy()
calls when charset
is set
charset
stores the pointer returned from getcharset()
getcharset()
might return the pointer from getnev()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4