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

fix: strip the '\x00' from the ibm_fw_vernum_encoded before parsing #3378

Merged
merged 4 commits into from
Apr 19, 2022

Conversation

xiangce
Copy link
Contributor

@xiangce xiangce commented Apr 8, 2022

Signed-off-by: Xiangce Liu [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

According to the collected ibm_fw_vernum_encoded file, there is a \x00 invisible symbol at the EOL. This PR removed this invisible symbol.

@xiangce xiangce requested a review from psachin April 18, 2022 06:43
@xiangce xiangce force-pushed the enhance_IBMFirmwareLevel branch from d102bc9 to 10624c8 Compare April 19, 2022 03:38
Signed-off-by: Xiangce Liu <[email protected]>
@xiangce xiangce force-pushed the enhance_IBMFirmwareLevel branch from 10624c8 to 3719aff Compare April 19, 2022 03:40
Signed-off-by: Xiangce Liu <[email protected]>
@xiangce xiangce force-pushed the enhance_IBMFirmwareLevel branch from 80591bc to 38edd49 Compare April 19, 2022 03:42
@psachin
Copy link
Contributor

psachin commented Apr 19, 2022

@xiangce Can you include the test case to cover the exception?

Signed-off-by: Xiangce Liu <[email protected]>
@xiangce xiangce merged commit e68bcd9 into master Apr 19, 2022
@xiangce xiangce deleted the enhance_IBMFirmwareLevel branch April 19, 2022 07:07
lhuett pushed a commit that referenced this pull request Apr 19, 2022
…3378)

* fix: strip the '\x00' from the ibm_fw_vernum_encoded before parsing

Signed-off-by: Xiangce Liu <[email protected]>

* use  instead of

Signed-off-by: Xiangce Liu <[email protected]>

* fix typo

Signed-off-by: Xiangce Liu <[email protected]>

* add test

Signed-off-by: Xiangce Liu <[email protected]>
(cherry picked from commit e68bcd9)
xiangce added a commit that referenced this pull request Sep 6, 2024
…3378)

* fix: strip the '\x00' from the ibm_fw_vernum_encoded before parsing

Signed-off-by: Xiangce Liu <[email protected]>

* use  instead of

Signed-off-by: Xiangce Liu <[email protected]>

* fix typo

Signed-off-by: Xiangce Liu <[email protected]>

* add test

Signed-off-by: Xiangce Liu <[email protected]>
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