platform/upstream/libnl3.git
5 years agolib: check for integer-overflow in nlmsg_reserve() 06/213206/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_base accepted/tizen_7.0_base_hotfix accepted/tizen_unified tizen tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5_base tizen_7.0_base_hotfix accepted/tizen/5.5/unified/20191031.011104 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073805 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100119 accepted/tizen/6.0/unified/20201030.110255 accepted/tizen/6.0/unified/hotfix/20201102.234707 accepted/tizen/6.0/unified/hotfix/20201103.050847 accepted/tizen/6.5/base/20211028.060235 accepted/tizen/7.0/base/20221116.025910 accepted/tizen/7.0/base/hotfix/20221116.055319 accepted/tizen/base/20210823.102905 accepted/tizen/base/20221115.103746 accepted/tizen/unified/20190903.110912 submit/tizen/20190903.054700 submit/tizen/20210823.081025 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5_base/20211028.134101 submit/tizen_base/20210823.081241 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
Cheoleun Moon [Tue, 3 Sep 2019 01:22:12 +0000 (10:22 +0900)]
lib: check for integer-overflow in nlmsg_reserve()

In general, libnl functions are not robust against calling with
invalid arguments. Thus, never call libnl functions with invalid
arguments. In case of nlmsg_reserve() this means never provide
a @len argument that causes overflow.

Still, add an additional safeguard to avoid exploiting such bugs.

Assume that @pad is a trusted, small integer.
Assume that n->nm_size is a valid number of allocated bytes (and thus
much smaller then SIZE_T_MAX).
Assume, that @len may be set to an untrusted value. Then the patch
avoids an integer overflow resulting in reserving too few bytes.

http://git.infradead.org/users/tgr/libnl.git/commit/3e18948f17148e6a3c4255bdeaaf01ef6081ceeb
Fix CVE-2017-0553

Change-Id: Ia9ad5040d866d2cc4c1c76eac5275d66edda338b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
5 years agoroute: remove unnecessary include of private linux/if.h 39/205239/1 accepted/tizen/unified/20190503.040749 submit/tizen/20190502.123334
David Chappelle [Tue, 30 Apr 2019 14:02:30 +0000 (19:32 +0530)]
route: remove unnecessary include of private linux/if.h

Including linux/if.h in netlink/route/link.h causes issues
in cases where libnl is used in conjuntion with other third
party libraries that include net/if.h. Seems to be a long
checkered history of symbol collisions between these two
files. As it turns out, including linux/if.h from within
netlink/route/link.h is actually unecessary. I resurrected
a forgotten path from this thread:

    http://lists.infradead.org/pipermail/libnl/2012-April/000525.html

By removing the include as the patch suggests we can get
around the nuissance of the symbol collisions.

https://github.com/thom311/libnl/pull/73

Note: This patch is backported from
http://git.infradead.org/users/tgr/libnl.git/patch/50a76998ac36ace3716d3c979b352fac73cfc80a

Change-Id: I6651c84e55870963825180c2732de581e6bb0ab6
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
11 years agoAdd packaging directory accepted/tizen/ivi/release accepted/tizen/ivi/stable accepted/tizen/mobile accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi tizen_4.0 tizen_5.0 tizen_ivi_panda accepted/tizen/20131023.170912 accepted/tizen/20131105.191957 accepted/tizen/20131112.015251 accepted/tizen/3.0/common/20161114.111024 accepted/tizen/3.0/ivi/20161011.050515 accepted/tizen/4.0/unified/20170816.012548 accepted/tizen/4.0/unified/20170828.222941 accepted/tizen/5.0/unified/20181102.030352 accepted/tizen/ivi/20160218.025224 accepted/tizen/ivi/panda/20140403.014353 accepted/tizen/unified/20170309.035959 submit/tizen/20131023.011205 submit/tizen_3.0.m2/20170104.093753 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000007 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000006 submit/tizen_ivi_panda/20140403.012020 submit/tizen_mobile/20141120.000000 submit/tizen_unified/20170308.100414 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
Arron Wang [Mon, 21 Oct 2013 03:04:18 +0000 (11:04 +0800)]
Add packaging directory

Change-Id: I6e0505cfcae0df47c1f1571ea8a7667107fa5ec6

11 years agoAdd autogen.sh
Arron Wang [Mon, 21 Oct 2013 03:12:27 +0000 (11:12 +0800)]
Add autogen.sh

Change-Id: I9405350de83accba4d9ce491fa96e3eb27a9c24e

11 years agoImported Upstream version 3.2.22 upstream/3.2.22
Arron Wang [Mon, 21 Oct 2013 03:11:55 +0000 (11:11 +0800)]
Imported Upstream version 3.2.22