Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fel: sid: fix segfault with default section map
The generic_2k_sid_maps, describing the SID sections for chips where we don't have any specific information yet, was missing the terminating NULL section, so we would run off into to woods, beyond the array limit. This would most commonly result in a segfault: $ sunxi-fel sid-dump .... 00000000 00000000 00000000 00000000 Segmentation fault (core dumped) ================= Add the NULL sentinel to terminate the loop correctly. Signed-off-by: Andre Przywara <[email protected]>
- Loading branch information