Skip to content

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 SergiyN@sapling-inc.com

…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 <SergiyN@sapling-inc.com>
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