No description
Find a file
Martin Storsjo 85a43d2fcf Fix string handling for generating version strings
Don't do concatenation with strncat; the length parameter in strncat
is only for how many chars to append at most, not for the full output
buffer size. To safely use strncat, one would have to do
strncat(buf, str, sizeof(buf) - strlen(buf)).

By using snprintf, we guarantee that the buffer is null terminated, and
we don't need to use strnlen at all.

(If compatibility with older MSVC versions that lack snprintf, one
can use _snprintf instead and manually add the null termination.)

Change-Id: I1c2322c7a406ddd5e6551a96c460da60deeffda1
2015-06-25 08:25:52 -07:00
common Remove some unused source files and headers 2015-06-25 08:25:52 -07:00
decoder Fix string handling for generating version strings 2015-06-25 08:25:52 -07:00
encoder Fix string handling for generating version strings 2015-06-25 08:25:52 -07:00
test Don't include <sys/time.h> if WINDOWS_TIMER is set 2015-06-25 08:25:45 -07:00
Android.mk fix file permissions 2015-05-05 17:51:34 +00:00
decoder.arm.mk Allow using the clang built-in arm assembler 2015-06-25 08:25:48 -07:00
decoder.arm64.mk Allow using the clang built-in arm assembler 2015-06-25 08:25:48 -07:00
decoder.mips.mk fix file permissions 2015-05-05 17:51:34 +00:00
decoder.mips64.mk Fix a variable name typo in the mips64 makefiles 2015-06-03 08:30:27 -07:00
decoder.mk Remove unnecessary defines/undefines in the makefiles 2015-06-25 08:25:43 -07:00
decoder.x86.mk Don't add -m32/-m64 to the cflags 2015-06-25 08:25:51 -07:00
decoder.x86_64.mk Don't add -m32/-m64 to the cflags 2015-06-25 08:25:51 -07:00
encoder.arm.mk Allow using the clang built-in arm assembler 2015-06-25 08:25:48 -07:00
encoder.arm64.mk Allow using the clang built-in arm assembler 2015-06-25 08:25:48 -07:00
encoder.mips.mk fix file permissions 2015-05-05 17:51:34 +00:00
encoder.mips64.mk Fix a variable name typo in the mips64 makefiles 2015-06-03 08:30:27 -07:00
encoder.mk Remove unnecessary defines/undefines in the makefiles 2015-06-25 08:25:43 -07:00
encoder.x86.mk Don't add -m32/-m64 to the cflags 2015-06-25 08:25:51 -07:00
encoder.x86_64.mk Don't add -m32/-m64 to the cflags 2015-06-25 08:25:51 -07:00