-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opj_{compress,decompress,dump}: fix possible buffer overflows in path manipulation functions #1346
Conversation
Also include a fix for CVE-2021-29338. |
Would you mind rebasing on top of latest master, now that master has solved the continuous integration issues ? |
… manipulation functions CVE pending.
b4700bc
to
9f8337a
Compare
Hi,
On Thu, 6 May 2021, Even Rouault wrote:
Would you mind rebasing on top of latest master, now that master has solved the continuous integration issues ?
Done.
Ariadne
|
Ah, our CI still uses MSVC 2010 in one of the setups, and it lacks snprintf()...
|
There's also code formatting issues. See https://travis-ci.org/github/uclouvain/openjpeg/jobs/769723267 for directions to fix |
Hi,
On Thu, 6 May 2021, Even Rouault wrote:
There's also code formatting issues. See https://travis-ci.org/github/uclouvain/openjpeg/jobs/769723267 for directions to fix
I'll take care of this over the weekend, unless you need it ASAP?
Ariadne
|
that's fine. no emergency |
This pull request is probably no longer needed since f0629cb . Closing it. If there are remaining elements, please issue a new pull request against latest master. |
The changes to (char*)calloc(num_images, OPJ_PATH_LEN * sizeof(char)); would still need to be done and haven't been addressed by f0629cb |
@rouault @kaniini are there plans to follow up on making a new PR for the fix to CVE-2021-29338 to resolve #1338 ? |
Includes the fix for CVE-2021-29338 Credit to @kaniini based on uclouvain#1346 Fixes uclouvain#1338
Includes the fix for CVE-2021-29338 Credit to @kaniini based on #1346 Fixes #1338
If
img_fol->imgdirpath
is itself ofOPJ_PATH_LEN
length, other buffers on the stack will be overwritten by the image filename.Any output of a function where paths are concatenated should likely be
OBJ_PATH_LEN * 2
, but I did not change this as it would cause an ABI break.