forked from AcademySoftwareFoundation/OpenImageIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use undefined behavior sanitizer (ubsan) as part of CI (AcademySoftwa…
…reFoundation#3565) In addition to address and leak sanitizers, also turn on the undefined behavior sanitizer in our CI run. We can do it in the same job as asan/lsan. Some things that come along for the ride, including fixes for things that ubsan uncovered: * src/build-scripts/ubsan-suppressions.txt can hold suppression list (though we don't have any now, it just sets up the space for it for future needs). * Split the "targa" test so that the parts that directly need the OIIO python module (which are all related to thumbnails) are now in "targa-thumbnails" test. That has to be disabled for the sanitizers, since we can't arrange for python to b linked to the sanitizer libraries. * Found vint4::store has a potentially unaligned integer store. * Found Strutil::concat is not necessarily safe if either of the strings are empty.
- Loading branch information
Showing
24 changed files
with
82 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Comparing "CBW8.TGA.tif" and "ref/CBW8.TGA.tif" | ||
PASS | ||
Comparing "CCM8.TGA.tif" and "ref/CCM8.TGA.tif" | ||
PASS | ||
Comparing "CTC16.TGA.tif" and "ref/CTC16.TGA.tif" | ||
PASS | ||
Comparing "CTC24.TGA.tif" and "ref/CTC24.TGA.tif" | ||
PASS | ||
Comparing "CTC32.TGA.tif" and "ref/CTC32.TGA.tif" | ||
PASS | ||
Comparing "UBW8.TGA.tif" and "ref/UBW8.TGA.tif" | ||
PASS | ||
Comparing "UCM8.TGA.tif" and "ref/UCM8.TGA.tif" | ||
PASS | ||
Comparing "UTC16.TGA.tif" and "ref/UTC16.TGA.tif" | ||
PASS | ||
Comparing "UTC24.TGA.tif" and "ref/UTC24.TGA.tif" | ||
PASS | ||
Comparing "UTC32.TGA.tif" and "ref/UTC32.TGA.tif" | ||
PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python | ||
|
||
import OpenImageIO as oiio | ||
import os | ||
|
||
redirect = " >> out.txt 2>> out.err.txt" | ||
|
||
imagedir = OIIO_TESTSUITE_IMAGEDIR + "/targa" | ||
|
||
files = [ "CBW8.TGA", "CCM8.TGA", "CTC16.TGA", "CTC24.TGA", "CTC32.TGA", | ||
"UBW8.TGA", "UCM8.TGA", "UTC16.TGA", "UTC24.TGA", "UTC32.TGA", | ||
"round_grill.tga" ] | ||
|
||
|
||
# Test ability to extract thumbnails | ||
outputs = [ ] | ||
for f in files: | ||
fin = imagedir + "/" + f | ||
buf = oiio.ImageBuf(fin) | ||
if buf.has_thumbnail : | ||
thumbname = f + ".tif" | ||
command += run_app(pythonbin + " src/extractthumb.py " + fin + " " + thumbname) | ||
outputs += [ thumbname ] | ||
|
||
outputs += [ 'out.txt' ] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters