Skip to content

fix(oval): use %d in CIM datetime sscanf for int fields#2352

Merged
jan-cerny merged 1 commit into
OpenSCAP:mainfrom
Mab879:cursor/fix-cim-datetime-sscanf-specifiers
May 14, 2026
Merged

fix(oval): use %d in CIM datetime sscanf for int fields#2352
jan-cerny merged 1 commit into
OpenSCAP:mainfrom
Mab879:cursor/fix-cim-datetime-sscanf-specifiers

Conversation

Match sscanf specifiers to int storage; zero-initialize parsed fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@jan-cerny jan-cerny self-assigned this May 14, 2026
Copy link
Copy Markdown
Member

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

This helps reduce undefined behavior and makes the code more defensive.

@jan-cerny jan-cerny merged commit e7b77d9 into OpenSCAP:main May 14, 2026
21 checks passed
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.

2 participants