Skip to content

FIX: Trim ISO characters in the input#4

Merged
StefanOltmann merged 1 commit into
mainfrom
trim_input
Jul 10, 2023
Merged

FIX: Trim ISO characters in the input#4
StefanOltmann merged 1 commit into
mainfrom
trim_input

Conversation

@StefanOltmann
Copy link
Copy Markdown
Contributor

We encountered a situation where the XMP had NUL characters at the end for unknown reasons.
This caused an exception in the parser.

The test images IMG_0001.jpg and IMG_0002.jpg on the iOS simulator exhibited this issue, indicating that it could occur in real-world scenarios as well.

To address this, we now trim all whitespaces and ISO control characters from the XMP to ensure its proper parsing.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@StefanOltmann StefanOltmann merged commit 937285f into main Jul 10, 2023
@StefanOltmann StefanOltmann deleted the trim_input branch July 10, 2023 13:02
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.

1 participant