Skip to content
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

Fix overrunning allocation region in debug common_ancestor_between #1577

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Sep 8, 2022

Bug found by LG running address sanitizer.
Fix by Alex. Tested by LG (works) and submitted on AW's behalf.

Signed-off-by: Alex Wells alex.m.wells@intel.com
Signed-off-by: Larry Gritz lg@larrygritz.com

@lgritz
Copy link
Collaborator Author

lgritz commented Sep 8, 2022

Note to @AlexMWells: I left the DASSERT statements, but removed all the OSL_DEV print messages to reduce clutter. The assertions ought to be enough, we can easily add prints if we ever need to debug this again.

Signed-off-by: Alex Wells <alex.m.wells@intel.com>
Signed-off-by: Larry Gritz <lg@larrygritz.com>
Copy link
Contributor

@AlexMWells AlexMWells left a comment

Choose a reason for hiding this comment

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

LGTM

@lgritz lgritz merged commit 54cf8b2 into AcademySoftwareFoundation:main Sep 8, 2022
@lgritz lgritz deleted the lg-cab branch September 8, 2022 17:13
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Sep 13, 2022
…cademySoftwareFoundation#1577)

Signed-off-by: Alex Wells <alex.m.wells@intel.com>
Signed-off-by: Larry Gritz <lg@larrygritz.com>
Co-authored-by: Alex Wells <alex.m.wells@intel.com>
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.

None yet

2 participants