Armin Novak
8007f3c291
[c23,rdtk] replace NULL with nullptr
2026-02-26 14:02:50 +01:00
Armin Novak
48267edf2f
[winpr] add WINPR_C_ARRAY_INIT
...
since C23 allows c++ style initializing replace direct use with this
macro
2026-02-25 19:23:08 +01:00
Armin Novak
73419a3a29
[rdtk,nodiscard] mark rdtk API nodiscard
2026-02-19 13:19:26 +01:00
akallabeth
3a8eeaa24a
[rdtk] mark all WINPR_ATTR_MALLOC also nodiscard
2026-01-26 13:22:29 +01:00
Armin Novak
e3d74b8afc
[clang,warnings] fix Wjump-misses-init
2026-01-08 11:32:42 +01:00
akallabeth
fbd3a2bef2
[rdtk,warnings] fix -Wunused-parameter
2025-02-13 15:54:18 +01:00
akallabeth
f901357a3d
[rdtk] fix integer casts
2024-12-19 11:36:10 +01:00
akallabeth
cf4ff90e16
[rdtk] fix rdtk_font_load_descriptor
...
* ensure string is '\0' terminated
* ensure allocated string is freed in all paths
2024-12-16 14:01:44 +01:00
akallabeth
cfeec0857d
[rdtk] fix font parser
...
ensure '\0' termination of input string.
2024-12-15 16:54:24 +01:00
akallabeth
efeac25fa9
[warnings] fix integer narrowing
2024-10-03 21:21:38 +02:00
akallabeth
586f40631f
[warnings] fix shorten-64-to-32
2024-09-17 16:13:48 +02:00
akallabeth
8a3f2be769
[rdtk] improve rdtk_font_load_descriptor_file
...
do simpler and better error handling
2024-09-15 09:07:38 +02:00
akallabeth
734d4ce43e
[rdtk] fix integer cast warnings
2024-09-03 12:56:21 +02:00
akallabeth
1d33095500
[warnings] fix cert-err33-c
...
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
akallabeth
55aa202ff5
[coverity] 1543037 Out-of-bounds read
2024-04-11 12:04:07 +02:00
akallabeth
0ba995655d
[clang-tidy] cppcoreguidelines-init-variables
2024-02-15 11:49:16 +01:00
Armin Novak
007ca8b646
[rdtk] code cleanups
2023-08-01 08:37:58 +02:00
Armin Novak
bd79d8f100
[winpr,rdtk] use png only if supported by winpr
...
rdtk compiles in bitmaps of fonts. if png format is supported by winpr,
prefer the png images, otherwise use bmp
2023-07-31 20:18:48 +02:00
Armin Novak
e6363649e0
[rdtk] add assertions and return checks
2023-07-31 20:18:48 +02:00
Armin Novak
8dc7c2b612
Reorganized RDTK headers
2022-03-03 11:26:48 +01:00
Armin Novak
0b0b716dd6
rdtk: Fixed warnings, added assertions
2021-06-18 11:32:16 +02:00
akallabeth
6b36c6d417
Replace fopen and path functions with wrappers ( #7043 )
...
Functions like fopen, PathFileExists, PathMakePath need to call
the wide character versions on windows for utf-8 support.
2021-05-31 11:42:03 +02:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
f01e042211
Code cleanups (strlen, casts, size_t, ...)
2019-10-29 11:58:43 +01:00
Armin Novak
114abad767
Removed use of strcpy.
2018-08-27 14:34:09 +02:00
Ondrej Holy
3a5fdd0a39
rdtk: Fix leak found by covscan
...
leaked_storage: Variable "fontBaseFile" going out of scope leaks the storage it points to.
leaked_storage: Variable "image" going out of scope leaks the storage it points to.
2018-08-22 14:34:02 +02:00
Armin Novak
4eb5b8e349
Replaced atoi
2017-11-15 15:52:16 +01:00
Bernhard Miklautz
52fbfb7b12
fix clang warnings, directly include wtypes.h ( #4097 )
...
* build: clang use -Wno-unused-command-line-argument
With clang 5.0 builds are quite noisy otherwise.
* Directly include wtypes.h
Directly include winpr/wtypes.h where _fseeki64 or _ftelli64 is used.
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: parentheses-equality
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning: tautological-compare
* fix build warnings with clang 5
clang version: 5.0.0-svn310678-1~exp1 (branches/release_50)
Warning:
incompatible pointer types passing 'size_t *' (aka 'unsigned
long *') to parameter of type 'UINT32 *' (aka 'unsigned int *')
[-Wincompatible-pointer-types]
2017-08-29 09:09:38 +02:00
Armin Novak
c3d4b7d262
fseeko and ftello for 64bit file support.
2017-08-14 08:42:49 +02:00
Armin Novak
b2c29158be
Scanbuild warning, argument checks and leak fixes.
...
* Added Stream_GetRemainingCapacity to check remaining stream size
before writes.
* Fixed shadow server memory leak.
* Fixed lots of scanbuild warnings
* Added missing argument checks in many functions
* Added missing static function declarations
2017-03-02 18:13:43 +01:00
zihao.jiang
f21749ac07
server: Fix several memory leak while running valgrind on freerdp-shadow
2015-09-17 01:02:22 +08:00
Armin Novak
30ea9f5056
Fixed malloc with 0 size.
2015-06-23 12:12:59 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Armin Novak
9753b63dda
Fixed memory leak.
2014-11-17 00:54:41 +01:00
Armin Novak
4b746fbed7
Fixed missing argument.
2014-11-17 00:17:06 +01:00
Armin Novak
ad1a029876
Fixed memory leaks.
2014-11-16 23:37:02 +01:00
Marc-André Moreau
7da4621334
librdtk: improve text positioning
2014-10-01 12:18:17 -04:00
Marc-André Moreau
24b594d592
librdtk: stub NinePatch, TextField and Button
2014-09-30 14:54:36 -04:00
Marc-André Moreau
abd87ace55
rdtk: initial commit
2014-09-29 16:08:08 -04:00