Skip to content

Fightwarn - sscanf signed vs unsigned#856

Merged
jimklimov merged 3 commits intonetworkupstools:masterfrom
jimklimov:fightwarn-sscanf-signed-unsigned
Nov 11, 2020
Merged

Fightwarn - sscanf signed vs unsigned#856
jimklimov merged 3 commits intonetworkupstools:masterfrom
jimklimov:fightwarn-sscanf-signed-unsigned

Conversation

@jimklimov
Copy link
Copy Markdown
Member

We had a number of data reads formatted as unsigned ints or hexes, written into signed variables with insufficient range for scanf'ing the potential size of unsigned original number. Commits in this PR aim to work around those situations.

Discovered thanks to CI improvements from #844

@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Nov 8, 2020

This pull request introduces 1 alert when merging f349ed8 into 8c1ad08 - view on LGTM.com

new alerts:

  • 1 for FIXME comment

@jimklimov jimklimov merged commit dfb8ef2 into networkupstools:master Nov 11, 2020
@jimklimov jimklimov deleted the fightwarn-sscanf-signed-unsigned branch November 15, 2020 10:35
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