Home | History | Annotate | Download | only in inet
History log of /src/common/lib/libc/inet/inet_addr.c
RevisionDateAuthorComments
 1.4  26-Jul-2018  kamil Avoid undefined behavior in an inet_addr.c

Do not change the signedness bit with a left shift operation.
Cast to unsigned integer to prevent this.

inet_addr.c:218:20, left shift of 131 by 24 places cannot be represented in type 'int'

Detected with micro-UBSan in the user mode.
 1.3  09-Mar-2012  christos branches: 1.3.32; 1.3.34;
Casts and type changes to fix portability issues.
- int -> size_t
- adjust width of RHS of shift
- adjust widths of types
 1.2  16-Feb-2008  apb branches: 1.2.26;
For all files under src/common, as well as related man pages under
src/lib/libc, or related headers under src/sys/sys: change u_intNN_t to
uintNN_t.
 1.1  20-Dec-2005  christos branches: 1.1.6; 1.1.18;
Merge libkern + libc common files. As requested by core.
 1.1.18.1  23-Mar-2008  matt sync with HEAD
 1.1.6.1  18-Nov-2008  snj Pull up following revision(s) (requested by tsutsui in ticket #1224):
common/lib/libc/gen/bswap64.c: revision 1.2
common/lib/libprop/prop_data.c: revision 1.10
common/lib/libc/inet/inet_addr.c: revision 1.2
common/lib/libc/hash/rmd160/rmd160.c: revision 1.4
common/lib/libc/gen/bswap32.c: revision 1.2
common/lib/libc/gen/bswap16.c: revision 1.2
common/lib/libc/arch/alpha/gen/byte_swap_4.S: revision 1.3
common/lib/libc/arch/sh3/string/memset.S: revision 1.2
common/lib/libc/arch/alpha/gen/byte_swap_2.S: revision 1.3
common/lib/libc/md/md5c.c: revision 1.3
common/lib/libc/hash/sha1/sha1.c: revision 1.3
common/lib/libc/md/md4c.c: revision 1.3
sys/sys/rmd160.h: revision 1.2
sys/sys/sha2.h: revision 1.2
For all files under src/common, as well as related man pages under
src/lib/libc, or related headers under src/sys/sys: change u_intNN_t to
uintNN_t.
 1.2.26.1  17-Apr-2012  yamt sync with head
 1.3.34.3  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.3.34.2  21-Apr-2020  martin Sync with HEAD
 1.3.34.1  10-Jun-2019  christos Sync with HEAD
 1.3.32.1  28-Jul-2018  pgoyette Sync with HEAD

RSS XML Feed