openwrtv3/package/network/utils/iproute2/patches
Kevin Darbyshire-Bryant 745d0e7f4b iproute2: fix hidden uint to uin64_t promotion in json_print
print_int used 'int' type internally, whereas print_uint used 'uint64_t'

These helper functions eventually call vfprintf(fp, fmt, args) which is
a variable argument list function and is dependent upon 'fmt' containing
correct information about the length of the passed arguments.

Unfortunately print_int v print_uint offered no clue to the programmer
that internally passed ints to print_uint were being promoted to 64bits,
thus the format passed in 'fmt' string vs the actual passed integer
could be different lengths.  This is even more interesting on big endian
architectures where 'vfprintf' would be looking in the middle of an
int64 type.  Symptoms of this included tc qdisc showing bizarre values
for a variety of fields across a variety of qdiscs (e.g. refcnt, flows,
quantum)

print_u/int now stick with native int size.

A similar patch has been sent upstream.

Fixes FS#1425

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-03-19 11:40:01 +01:00
..
001-config.patch iproute2: bump to 4.13 2017-10-13 21:48:44 +02:00
004-darwin_fixes.patch iproute2: bump to 4.13 2017-10-13 21:48:44 +02:00
007-no_arpd.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
008-no_netem.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
009-keep_libmnl_optional.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
100-allow_pfifo_fast.patch iproute2: bump to 4.11 2017-05-30 14:00:31 +02:00
110-extra-ccopts.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
120-libnetlink-pic.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
300-ip_tiny.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
900-drop_FAILED_POLICY.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00
910-iproute2-fix-hidden-uint-to-uin64_t-promottion-in-js.patch iproute2: fix hidden uint to uin64_t promotion in json_print 2018-03-19 11:40:01 +01:00
950-add-cake-to-tc.patch iproute2: update to version 4.15.0 2018-02-15 23:31:23 +01:00