summaryrefslogtreecommitdiffstats
path: root/XUtils.c
Commit message (Collapse)AuthorAgeFilesLines
* XUtils: check for multiplication overflow in allocation sizeChristian Göttsche2021-01-021-0/+22
|
* Use size_t as len type for xSnprintfChristian Göttsche2020-12-061-2/+2
| | | | Like the C snprintf function
* IWYU updateChristian Göttsche2020-12-061-0/+1
|
* Add xReadfile wrapper for reading small to medium size filesChristian Göttsche2020-12-021-0/+50
| | | | | | Inspired by proposed Linux syscall Avoid file descriptor leaks like 4af8c63f
* Spacing around operatorsBenny Baumann2020-11-021-4/+4
|
* IWYU updateChristian Göttsche2020-10-201-0/+1
| | | | | | | | | | | - Add Settings forward declaration in Process.h - Add assert.h include in XUitls.c - Add conditional stdbool.h include in Object.h - Drop unneeded stddef.h include in Richstring.c - Drop unneeded unistd.h include in Process.h - Drop unneeded string.h include in linux/Platform.c - Use String_eq to avoid string.h include in Action.c - Improve script to run custom iwyu version
* XUtils string related updatesChristian Göttsche2020-10-191-36/+32
| | | | | | | | | | - allow count out-parameter of String_split() to be NULL - introduce xStrndup() - do not allow NULL pointers passed to String_eq() it is not used in any code - implement String_startsWith(), String_contains_i() and String_eq() as inline header functions - adjust several conversion issues
* Assert allocating non-zero size memoryChristian Göttsche2020-10-191-6/+6
| | | | | | | | Allocating zero size memory results in implementation-defined behavior: man:malloc(3) : If size is 0, then malloc() returns either NULL, or a unique pointer value that can later be successfully passed to free().
* Make all required includes explicitBenny Baumann2020-10-181-2/+1
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Release old memory on errorBenny Baumann2020-10-171-2/+10
| | | | Avoids leaking memory upon realloc failure.
* Combine XAlloc.[ch] into XUtils.[ch]Benny Baumann2020-10-171-1/+30
|
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-0/+179

© 2014-2024 Faster IT GmbH | imprint | privacy policy