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

src/core/osutils.cc: Fix std::length_error exception on reading the s… #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergiineodnichyk
Copy link

…tring attributes in sysfs.

Add checking for std:string buffer overflow on reading string attribute from sysfs
to fix the issue [1] that was reproduced on reading mmc device info on
LS-ok1046ac2v1 Hardware based on [2] chip.

Reference:

  1. terminate called after throwing an instance of 'std::length_error'
  2. https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-processors/layerscape-1046a-and-1026a-processors:LS1046A

Signed-off-by: Sergiy Neodnichyk [email protected]

…tring attributes in sysfs.

Add checking for std:string buffer overflow on reading string attribute from sysfs
to fix the issue [1] that was reproduced on reading mmc device info on
LS-ok1046ac2v1 Hardware  based on [2] chip.

Reference:
1. terminate called after throwing an instance of 'std::length_error'
2. https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-processors/layerscape-1046a-and-1026a-processors:LS1046A

Signed-off-by: Sergiy Neodnichyk <[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.

1 participant