diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-07-07 21:21:49 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-07-07 21:21:49 +0000 |
commit | 9f158499108eae39555bc65d1abfd86bd0c65533 (patch) | |
tree | d4713ec6f154f1e844b3a77daebc190003bed193 /package/utils/busybox/Makefile | |
parent | 08790c5ee8bfca46d0afe973e336e44e27e35a8c (diff) | |
download | upstream-9f158499108eae39555bc65d1abfd86bd0c65533.tar.gz upstream-9f158499108eae39555bc65d1abfd86bd0c65533.tar.bz2 upstream-9f158499108eae39555bc65d1abfd86bd0c65533.zip |
nvram: fix "Segmentation fault" caused by setting memory out of buffer
Some MTD partitions with NVRAM have content starting in the middle. In
such case offset is set and nvram_header returns pointer to the middle.
It means we have to respect offset when calculating remaining space.
By the way use real MTD partition size (nvram_part_size variable) as we
may want to bump NVRAM_SPACE in the (very near) future.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46251
Diffstat (limited to 'package/utils/busybox/Makefile')
0 files changed, 0 insertions, 0 deletions