]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commit
copy-firmware.sh: call ./check_whence.py before parsing the file
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 22 Sep 2024 15:44:25 +0000 (16:44 +0100)
committerMario Limonciello <superm1@gmail.com>
Thu, 10 Oct 2024 14:33:32 +0000 (14:33 +0000)
commit6edd0fd36acb93c8075bbd700ad91f53fc810c0e
tree06b2a625b8f15ca2dde2bb78398ef3aa308be6e2
parent32f71d6d456e0a0cd89f9fa03c62d984f3afa05d
copy-firmware.sh: call ./check_whence.py before parsing the file

Currently ./check_whence.py is used when submitting new firmware, while
copy-firmware.sh when the firmware is to be consumed.

Since the latter does (very little) validation, having a malformed WHENCE file
can lead to all sorted of problems. From the obvious, where it errors out, to
more serious one where it overwrites or executes something it should not have.

Just call check_whence.py and error out. It takes 0.2s on my 5 year old
mid-range laptop, so the overhead is negligible.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
copy-firmware.sh