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

Feature/v4 post release fixes #200

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

pnemere
Copy link
Contributor

@pnemere pnemere commented Mar 27, 2024

No description provided.

Peter Nemere added 2 commits March 27, 2024 08:07
…or uploaded datasets. Fixed some error handling too
…g read, and that image is a RGBU TIF, which failed to be read by Go tif lib. We now detect it's an RGBU TIF and use a hard-coded width/height
@pnemere pnemere merged commit c8e2ce8 into development Mar 27, 2024
9 checks passed
var img image.Image

if imageExt == ".IMG" {
w, h, d, err := imgFormat.ReadIMGFile(imgData)
imgWidth = uint32(w)

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of an integer with architecture-dependent bit size from
strconv.Atoi
to a lower bit size type uint32 without an upper bound check.
var img image.Image

if imageExt == ".IMG" {
w, h, d, err := imgFormat.ReadIMGFile(imgData)
imgWidth = uint32(w)
imgHeight = uint32(h)

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of an integer with architecture-dependent bit size from
strconv.Atoi
to a lower bit size type uint32 without an upper bound check.
@@ -656,19 +664,36 @@
matchInfo *protos.ImageMatchTransform,
jobLog logger.ILogger) error {
// Read the image - we used to only copy files around but here we need to open it for meta data
imgFile, err := utils.ReadImageFile(imagePath)
imgbytes, err := os.ReadFile(imagePath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
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

1 participant