matt335672
d3bfe802cc
Code quality: Fix some cppcheck messages
...
This commit addresses these kind of errors:
portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB]
Reason is that C does not guarantee that all pointer types are the same
size. See C99 6.2.5(27). cppcheck requires some sort of cast when NULL
is used as the last argument in a variadic list.
2026-02-20 16:02:05 +01:00
firewave
6b816d0c64
common/list.c: fixed -Wcalloc-transposed-args GCC warning
...
```
/home/user/CLionProjects/xrdp/common/list.c: In function ‘list_create_sized’:
/home/user/CLionProjects/xrdp/common/list.c:50:41: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
50 | self = (struct list *)calloc(sizeof(struct list), 1);
| ^~~~~~
/home/user/CLionProjects/xrdp/common/list.c:50:41: note: earlier argument should specify number of elements, later size of each element
```
2025-11-05 13:51:49 +01:00
matt335672
4e77772ea2
Fix problems detected by -fsanitize=address
2024-05-07 12:51:30 +01:00
firewave
fb9c175b11
enabled and fixed -Wmissing-prototypes compiler warnings
...
Co-authored-by: matt335672 <30179339+matt335672@users.noreply.github.com >
2024-04-23 18:38:20 +02:00
matt335672
c3d697de16
Add list_add_strdup() etc
2023-03-06 15:58:13 +00:00
matt335672
a317c3de5d
Fix regression in list module
2023-03-06 15:47:49 +00:00
Nexarian
89e178e7c9
Add function to split string into list.
...
- With working unit tests.
2023-03-03 18:33:33 -05:00
matt335672
5aa5624551
Add memory allocation checking to the list module
...
The list module lacks memory allocation checking, and
consequently can coredump on list_create() or
list_add_item().
2023-02-13 10:37:46 +00:00
Alexandre Quesnel
2ab3b97ba0
Migrating logging to LOG() and LOG_DEVEL() in common/*
2021-03-14 23:33:31 +00:00
matt335672
0a1a8f40e5
Moved a lot of string funcs to string_calls module
2020-12-22 11:57:24 +00:00
Pavel Roskin
6ed4c969f4
Eliminate APP_CC and DEFAULT_CC
2017-03-14 00:21:48 -07:00
Pavel Roskin
b2d3dcf169
Include config_ac.h from all source files
2017-03-04 00:52:34 -08:00
Jay Sorg
c5e9bc7851
common: print list items as pointers
2017-02-22 20:39:56 -08:00
Jay Sorg
7825246d7a
fix warning new since stdint.h change
2017-02-22 20:39:56 -08:00
Pavel Roskin
6fef1e4eb5
Use const pointers in function arguments when possible
2016-10-17 08:54:07 -07:00
Pavel Roskin
e65bd6b7d7
Fix more format warnings
2016-04-21 21:21:17 -07:00
Pavel Roskin
92a6833e9b
Fix typos
2016-02-13 20:41:07 -08:00
Jay Sorg
374633e63f
common: no logic change, update comments
2014-03-01 23:26:40 -08:00
Jay Sorg
c6fa03102f
copyright year update
2013-06-08 10:51:53 -07:00
Laxmikant Rashinkar
1123323fda
o moved from GNU General Public License to Apache License, Version 2.0
...
o applied new coding standards to all .c files
o moved some files around
2012-09-19 20:51:34 -07:00
Jay Sorg
fcfd14fefd
common: fix some warnings
2012-06-11 20:10:56 -07:00
Jay Sorg
bb7898419f
update copyright year
2010-10-19 20:00:38 -07:00
jsorg71
eeac7c938a
add extended log output
2009-08-05 06:16:05 +00:00
jsorg71
6c5f82fd04
update copyright year
2009-02-02 08:01:44 +00:00
jsorg71
38b789e81f
update copyright year
2008-01-30 07:30:10 +00:00
jsorg71
ea7553f77c
long to tbus
2007-11-03 06:03:46 +00:00
jsorg71
02cd95ebef
copyright year update
2007-01-12 05:01:58 +00:00
jsorg71
0a7dc2b687
copyright changes on some files
2006-10-12 04:46:40 +00:00
jsorg71
9a5e4d594f
added function list_append_list_strdup
2006-09-18 04:35:10 +00:00
jsorg71
b65409683b
copyright year updates
2006-03-21 02:05:38 +00:00
jsorg71
baf7f173ae
added some APP_CC and changed ssl prefix
2005-11-26 00:57:12 +00:00
jsorg71
41df89c7f2
moved some files around
2005-06-28 03:04:36 +00:00