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

testsuite: fix integer overflow #968

Merged
merged 1 commit into from Sep 16, 2022
Merged

Conversation

garlick
Copy link
Member

@garlick garlick commented Sep 16, 2022

Problem: matcher_util_api_test01 tries to encode a value of 2^32 with jansson "i" which overflows, then the Jobspec yaml parser refuses to parse a negative value.

Encode the value with jansson "I" instead.

Fixes #967

Problem: matcher_util_api_test01 tries to encode a value of 2^32
with jansson "i" which overflows, then the Jobspec yaml parser
refuses to parse a negative value.

Encode the value with jansson "I" instead.

Fixes flux-framework#967
@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #968 (b33fe79) into master (14113eb) will increase coverage by 0.0%.
The diff coverage is n/a.

❗ Current head b33fe79 differs from pull request most recent head 6ae3a5f. Consider uploading reports for the commit 6ae3a5f to get more accurate results

@@          Coverage Diff           @@
##           master    #968   +/-   ##
======================================
  Coverage    74.0%   74.0%           
======================================
  Files          78      78           
  Lines        9291    9291           
======================================
+ Hits         6882    6883    +1     
+ Misses       2409    2408    -1     
Impacted Files Coverage Δ
qmanager/modules/qmanager_callbacks.cpp 73.7% <0.0%> (+0.4%) ⬆️

Copy link
Contributor

@grondo grondo left a comment

Choose a reason for hiding this comment

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

Good find!

@garlick garlick added the merge-when-passing mergify.io - merge PR automatically once CI passes label Sep 16, 2022
@mergify mergify bot merged commit 61d7372 into flux-framework:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-passing mergify.io - merge PR automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

matcher_util_api_test01: yaml-cpp: error at line 1, column 93: bad conversion (and segfault)
2 participants