summaryrefslogtreecommitdiff
path: root/util/me7_update_parser
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-01-26 06:00:49 +0000
committerLeah Rowe <leah@libreboot.org>2025-01-26 06:09:04 +0000
commitcdf23975bc1aa5a2a90272662c151fd192e57d3c (patch)
tree961dca484391dbf550f9f979039467ef1f139f4d /util/me7_update_parser
parented45da9cae530925a5bc633ed080a6a04fb3c7dd (diff)
util/nvmutil: Only allocate needed memory for file
We were allocating 128KB even if we only needed 8KB, for example. It's not a lot of memory, but the principle of the matter is that we must respect the user by not wasting their memory. The design of nvmutil is that it will never overflow, because operations are mapped in memory to the exact size of the gbe file, which can be 8KB, 16KB or 128KB, and this is enforced. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/me7_update_parser')
0 files changed, 0 insertions, 0 deletions