]> git.pond.sub.org Git - empserver/commit
file: Provide EF_WITH_CADEF_MAX_ENTRY_SIZE to clean up xditem()
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 27 Jan 2014 19:57:20 +0000 (20:57 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2015 15:52:59 +0000 (16:52 +0100)
commit9a6998882aed606ff5a7547c0d9a96fa9e0b1612
tree521ddc5d1aa223ffaf01f2b8ceb1559bccd5a329
parent9ef4f1bf5018e82cd5944034c97e19b466fda974
file: Provide EF_WITH_CADEF_MAX_ENTRY_SIZE to clean up xditem()

xditem() needs a buffer that can hold entries of any xdumpable table.
It's been 2048 bytes and marked FIXME since day one.  Clean it up so
that if anyone ever goes crazy with entry sizes, we fail an assertion
during startup instead of overrunning the buffer during play.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/file.h
src/lib/commands/xdump.c
src/lib/common/filetable.c