Skip to content

Conversation

@tlnguyen-smu
Copy link

This PR fixes a potential security vulnerability in rtengine/dcraw.cc that was cloned from https://github.com/LibRaw/LibRaw-demosaic-pack-GPL2 but did not receive the security patch.

Details:

Affected File: rtengine/dcraw.cc
Original Fix: LibRaw/LibRaw-demosaic-pack-GPL2@194f592

What this PR does:

This PR applies the same security patch that was applied to the original repository to eliminate the potential vulnerability in the cloned code.

References:

Please review and merge this PR to ensure your repository is protected against this potential vulnerability.

type = get4(); get4(); get4();
wide = get4();
high = get4();
#ifdef LIBRAW_LIBRARY_BUILD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ifdef doesn't make sense in our context. Probably the lines should be always enabled, but then throwing an exception might be problematic. In any case art should not be executed in security-critical situations anyway, there are probably many other potentially-exploitable vulnerabilities in the rest of the code...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants