Commit Graph

39 Commits

Author SHA1 Message Date
libretroadmin 6b21ad6f53 (libretro-db) Simplifications/cleanups 2023-02-19 05:27:43 +01:00
libretroadmin 66ad277dc1 (libretro-db) Simplifications 2023-02-19 05:18:41 +01:00
libretroadmin e65f273065 (libretro-db) Style/code nits 2023-02-19 04:54:47 +01:00
libretroadmin 2d48cbaec6 (libretro-db) Cleanups/style nits 2023-02-18 18:04:55 +01:00
libretroadmin b04a926170 (libretro-db) Further cleanups 2023-02-17 17:49:36 +01:00
LibretroAdmin c04201927b Don't make libretrodb dependent on errno anymore (#14340)
* Don't make libretrodb dependent on errno anymore
2022-08-23 19:36:52 +02:00
sonninnos ca311246b1 C89 buildfix 2021-08-24 22:32:47 +03:00
Autechre e5dc368e20 Merge pull request #12735 from schellingb/rmsgpack_fixwrapintwrite
libretro-db fix writing of numerical values
2021-08-04 15:08:14 +02:00
Bernhard Schelling 9956ff041e Fix libretro-db loading on big endian platforms
Wrong casting did read garbage data for numerical values on big endian platforms.
Numerical values are used for array/map lengths so this could easily cause random crashes during parsing but also later while using the data.
Use union to avoid strict aliasing warnings.
2021-08-04 01:20:25 +09:00
Bernhard Schelling 2d1a657ba8 libretro-db fix writing of numerical values
Correctly write map lengths between 16 and 65535 to just 2 bytes and not 4.
Fix writing of numerical values between -31 and -1.
Fix writing of numerical values less than 256 on big endian platforms.
2021-08-04 01:15:21 +09:00
twinaphex 3c73183a04 Cleanups - fix warnings 2018-05-07 15:05:59 +02:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
Higor Eurípedes 3ec31873e8 (rmsgpack.c) Fix possible double free() in rmsgpack_read()
read_buff() didn't set *pbuff to NULL after on error.
2016-09-17 21:22:49 -03:00
twinaphex d5d2f7f8ee Fix resource leaks 2016-05-23 22:17:28 +02:00
Twinaphex eeeec23c66 (OSX) Static code analyzer cleanups 2016-05-02 16:57:53 +02:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 12e51eb4b5 (libretrodb) Add headers and cleanups 2016-03-21 18:16:05 +01:00
twinaphex 0063da8e11 (rmsgpack.c) Silence warning 2015-11-18 02:28:47 +01:00
Higor Eurípedes 6454f70c8d (libretrodb) Return the correct str/buf length in rmsgpack_read and read_buff 2015-11-14 16:03:49 -03:00
Higor Eurípedes 80a89bbd36 (libretro-db) Get rid of calloc() in rmsgpack_read() 2015-11-14 16:03:49 -03:00
twinaphex 3960897e74 (libretro-db) Cleanups 2015-09-21 15:37:14 +02:00
twinaphex f19366eaca (PS3/libretro-db) Avoid some warnings 2015-09-21 15:33:35 +02:00
twinaphex 9093cd4aba (libretro-db) Use retro_endianness.h functions completely 2015-09-21 11:37:31 +02:00
twinaphex 0d16768688 (libretro-db) Start using retro_endian.h functions directly 2015-09-21 11:28:33 +02:00