mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
When parsing environment block, check each its line for the compliance with the 'foo=bar\n' pattern. In case of missing '=', or '\n' abort the parsing procedure with a warning message. Without this check, stage3 may write a zero byte to the absolute address 0 (robustness defect) Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>