openwrtv3/package
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
..
base-files base-files: add more name source to get_dt_led helper function 2018-03-14 19:04:52 +01:00
boot uboot-mxs: fix compile problems related to OpenSSL 2018-03-17 23:22:40 +01:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:03:42 +01:00
firmware ipq-wifi: add board-2.bin for ASUS RT-AC58U 2018-03-15 21:00:39 +01:00
kernel ltq-vdsl-mei: Fix section mismatch 2018-03-18 14:06:00 +01:00
libs nghttp2: bump to 1.31.0 2018-03-05 10:44:20 +01:00
network iproute2: fix hidden uint to uin64_t promotion in json_print 2018-03-19 11:40:01 +01:00
system ubox: fix PKG_MIRROR_HASH 2018-02-20 21:35:14 +01:00
utils firmware: add JBOOT based devices config extractor 2018-03-18 22:22:38 +01:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00