rockbox/firmware/common
William Wilgus de6618a271 Fix vuprintf fix possible %s buffer over-read
when precision is not specified memchr recieved -1 for count
count is unsigned so it looks in a potentially very large area
for a terminator and returns this whole area if \0 is not found

Instead we should use memchr when precision is specified
and if precision is not specified use strlen

Fixes 60+Mb Config.cfg files

Change-Id: Ic4d1439334588f999c9071235430c42df2af5cc4
2018-11-10 02:47:19 +01:00
..
config.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
crc32-mi4.c crc-mi4: use const lookup table for crc 2014-07-07 12:54:50 +02:00
crc32-rkw.c Add RKW firmware file format loader 2012-03-04 00:34:26 +01:00
crc32.c buflib: Add crc field protecting buflib cookie integrity 2014-01-16 10:17:39 +01:00
diacritic.c Diacritic.c add newline to EOF 2018-10-18 08:03:20 -04:00
dir.c Restore dircache hookup in the database ramcache. 2017-02-10 05:05:23 -05:00
dircache.c Dircache: Improve freed name memory recallocation 2017-03-21 23:11:55 -04:00
disk.c Fix a bug in disk.c that really wasn't affecting anything. 2017-02-06 02:25:22 -05:00
disk_cache.c Do some housekeeping with fat.h and SECTOR_SIZE 2017-03-12 22:05:44 -04:00
fdprintf.c Add a small 32-byte write buffer to fdprintf. 2017-11-28 09:01:17 -05:00
file.c Remove FF_CREAT and FF_EXCL flags in from file code. 2017-02-14 17:54:50 -05:00
file_internal.c Dircache: Refine name allocation and error handling. 2017-03-12 21:09:16 -04:00
fileobj_mgr.c Do some debug and preparatory work for ramcache and playlist 2017-01-17 14:35:36 -05:00
linked_list.c Optimize lld_remove() a bit 2017-04-13 18:59:45 -04:00
loader_strerror.c Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
pathfuncs.c Add some comments about the behavior of a couple path functions. 2017-02-07 02:45:26 -05:00
rb-loader.c Add boot from other volumes in bootloader on targets with HAVE_MULTIVOLUME 2017-10-29 17:53:04 +01:00
strcasecmp.c Compile fix for mingw-w64 2011-12-04 21:07:06 +00:00
strcasestr.c Added ID3 searching 2005-01-27 22:21:08 +00:00
strlcat.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
strlcpy.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
strnatcmp.c Remove tabs in firmware path (taking into account the original spacing). 2010-02-22 21:24:09 +00:00
structec.c Fix warning in firmware/common/structec.c 2015-02-24 16:27:16 -05:00
timefuncs.c Convert i.MX31 and AMS target to use RTC interrupt 2017-11-21 07:52:02 -05:00
unicode.c unicode: Fix getle16 and getbe16 2014-09-21 07:42:49 +02:00
version.c Prevent spurious recompiles on account of changed version. 2014-08-28 15:48:56 +02:00
vuprintf.c Fix vuprintf fix possible %s buffer over-read 2018-11-10 02:47:19 +01:00