You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, the values I found for MAX_PATH (260) and OPJ_PATH_LEN (4096) that I found suggest these sprintf(3) calls could overflow. Perhaps asprintf(3) would be the easiest re-write, but that uses GNU-specific extensions that might not be available on all target platforms. If you swap to snprintf(3) please check for both less than zero and greater than allocated length return values.
Thanks
The text was updated successfully, but these errors were encountered:
openjpeg/src/bin/jp3d/convert.c
Line 428 in 06f7d41
Hello, the values I found for
MAX_PATH
(260) andOPJ_PATH_LEN
(4096) that I found suggest thesesprintf(3)
calls could overflow. Perhapsasprintf(3)
would be the easiest re-write, but that uses GNU-specific extensions that might not be available on all target platforms. If you swap tosnprintf(3)
please check for both less than zero and greater than allocated length return values.Thanks
The text was updated successfully, but these errors were encountered: