]> git.tuebingen.mpg.de Git - paraslash.git/commit
afh: Make ->chunks_total and ->seconds_total fixed-size.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 4 Oct 2014 23:52:50 +0000 (23:52 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 28 Dec 2015 17:02:04 +0000 (17:02 +0000)
commit73073e4f4209c874f2f41e270376a9802862df8f
treedb5890791c9c9319b1194d162ac43ab18b95b101
parente080d112e6a79c3f78c33d004010bff03b40b38d
afh: Make ->chunks_total and ->seconds_total fixed-size.

These members of struct afh_info are stored as 4-byte quantities in
the serialized afhi blob created by save_afhi(), so the structure
should declare them as uint32_t rather than unsigned long.

Fortunately, this bug is benign since save_afhi() uses the write_u32()
helper from portable_io.h which does the right thing, regardless of
the type of the variable passed.
aac_afh.c
afh.h
afh_common.c
afh_recv.c
aft.c
mp3_afh.c
ogg_afh_common.c