mesa/src/util
Samuel Iglesias Gonsalvez f3afcbecc6 util: use strnlen() in strndup() implementations
If the string being copied is not NULL-terminated the result of
strlen() is undefined.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2015-09-30 08:13:07 +02:00
..
tests/hash_table util/hash: Silence comparison between signed and unsigned integer warnings in tests 2015-02-17 12:29:58 -08:00
.gitignore util: add u_atomic_test to .gitignore 2014-12-16 13:50:59 +02:00
Android.mk android: fix the building rules for Android 5.0 2015-04-22 15:53:35 +01:00
bitset.h util/bitset: Add a BITSET_FOREACH_SET macro 2015-08-18 17:48:28 -07:00
format_srgb.h util: include c99_compat.h in format_srgb.h to get 'inline' definition 2014-08-04 14:06:13 -06:00
format_srgb.py gallium: Move sRGB <-> RGB handling to libmesautil 2014-08-04 11:07:15 -07:00
hash_table.c util/hash_table: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
hash_table.h hash_table: Rename insert_with_hash to insert_pre_hashed 2015-01-15 13:21:27 -08:00
list.h util/list: add list_first/last_entry 2015-06-21 07:52:36 -04:00
macros.h util: Rename PURE to ATTRIBUTE_PURE. 2015-08-09 11:32:43 +01:00
Makefile.am util: automake: rework the format_srgb.c rule 2015-09-09 12:48:09 +01:00
Makefile.sources util: implement strndup for WIN32 2015-09-29 10:03:47 +02:00
mesa-sha1.c util: make mesa-sha1.c completely empty when there are no SHA1 impls 2015-09-07 00:18:12 -04:00
mesa-sha1.h Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h 2015-01-19 10:53:07 -08:00
ralloc.c util: use strnlen() in strndup() implementations 2015-09-30 08:13:07 +02:00
ralloc.h util/ralloc: Fix extern "C" usage. 2015-04-13 12:03:26 +01:00
register_allocate.c util/ra: (trivial) fix c99 loop variable initialization 2015-08-19 04:17:49 +02:00
register_allocate.h util/ra: Make allocating conflict lists optional 2015-08-18 17:48:53 -07:00
rgtc.c util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
rgtc.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
roundeven_test.c util: Add a roundeven test. 2015-03-18 21:06:26 -07:00
rounding.h util: (trivial) include c99_math.h in rounding.h 2015-08-19 04:17:36 +02:00
SConscript scons: Build roundevent_test. 2015-08-10 00:07:27 +01:00
set.c util/set: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
set.h util/hash_set: Rework the API to know about hashing 2015-01-15 13:21:27 -08:00
simple_list.h mesa: Port a variant of 68afbe89c7 to util/ 2015-01-28 16:33:34 -08:00
strndup.c util: use strnlen() in strndup() implementations 2015-09-30 08:13:07 +02:00
strndup.h util: Fix strndup prototype on C++. 2015-09-29 16:01:56 +01:00
strtod.c mesa/main: free locale at exit 2015-06-29 09:06:40 -07:00
strtod.h mesa/main: free locale at exit 2015-06-29 09:06:40 -07:00
texcompress_rgtc_tmp.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
u_atomic.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00
u_atomic_test.c util/u_atomic: Ignore warnings interlocked accesses. 2015-03-25 10:42:48 +00:00