diff options
| author | Kristian Amlie <kristian.amlie@northern.tech> | 2018-04-04 10:09:57 +0200 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2018-04-10 15:19:15 -0400 |
| commit | 8a0b827b1a12cf3e224a4c083de7a1e448356a16 (patch) | |
| tree | caf763d47e8f3f8a4302d8635f524506726089b6 /scripts/checkpatch.pl | |
| parent | 2f8ffb0655ccb7f5cc5568a52ff45272b19fa5d3 (diff) | |
| download | u-boot-8a0b827b1a12cf3e224a4c083de7a1e448356a16.tar.gz u-boot-8a0b827b1a12cf3e224a4c083de7a1e448356a16.tar.xz u-boot-8a0b827b1a12cf3e224a4c083de7a1e448356a16.zip | |
fw_printenv: Fix crash due to incorrect size for malloc'ed string.
Using sizeof gives the size of the pointer only, not the string. This
could easily lead to crashes when using -l argument.
Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
