539 Commits

Author SHA1 Message Date
Armin Novak
41c9286c3c [gdi,gfx] tighter bounds checks for gfx updates 2026-03-01 06:11:55 +01:00
Armin Novak
89ab3c6c1b [nodiscard] Fix all winpr_RAND usages
* Check return value and act on it.
* Initialize arrays that were missed before.
2026-02-27 15:52:26 +01:00
Armin Novak
5c510af477 [c23,freerdp] replace NULL with nullptr 2026-02-26 15:06:27 +01:00
Armin Novak
e58819830a [c23] simplify boolean checks 2026-02-26 11:51:05 +01:00
Armin Novak
0531803808 [warnings] make function declaration names consistent
Use the same parameter names for declaration and implementation.
2026-02-26 10:35:25 +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
4e4f84d33d [libfreerdp] mark internal functions [[nodiscard]] 2026-02-24 11:54:00 +01:00
Armin Novak
72c4c14918 [gdi,shape] fix gdi_FillRect checks 2026-02-18 13:23:47 +01:00
Armin Novak
ab1675f2cb [gdi,graphics] fix gdi_Glyph_BeginDraw return checks 2026-02-18 13:15:56 +01:00
Armin Novak
cf86ec9ed0 [gdi] fix handling of empty regions
Do not abort if an empty update region is found, ignore it.
2026-02-17 16:38:36 +01:00
Armin Novak
df64d00a97 [warnings,api] fix -Wunused-result
With marking publid API [[nodiscard]] some problematic error checks in
the core library were uncovered. This commit addresses these
shortcomings.
2026-02-17 11:07:08 +01:00
Armin Novak
169971607c [codec,nsc] fix use of nsc_process_message
the second width/height argument should reflect the destination buffer
pixel size
2026-02-17 08:38:04 +01:00
Armin Novak
e0e6a7f800 [freerdp,warnings] properly handle function return 2026-02-16 09:18:37 +01:00
Armin Novak
92fde0f6b3 [gdi] add additional checks for a valid rdpGdi
some client implementations do not properly set up the gdi, so abort
gracefully.
2026-01-27 15:07:10 +01:00
Armin Novak
43e3b862af [warnings] fix initialization skip warnings 2026-01-21 16:41:26 +01:00
akallabeth
90f62bd353 Merge pull request #12150 from akallabeth/wlog-printf
Wlog printf format string checks
2026-01-16 13:01:55 +01:00
akallabeth
9f0eb3b7d4 [gdi,graphics] Use freerdp_glyph_convert_ex 2026-01-16 12:09:29 +01:00
akallabeth
a6c2be446c [c,printf] fix wlog format string to match arguments 2026-01-16 11:42:17 +01:00
akallabeth
c23f83b970 [c,printf] fix wlog format string to match arguments 2026-01-16 11:42:15 +01:00
akallabeth
c4a7c37134 [gdi,gfx] properly clamp SurfaceToSurface 2026-01-15 13:45:24 +01:00
Armin Novak
aa96853483 [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:42 +01:00
Armin Novak
abb7d9db17 [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:42 +01:00
akallabeth
5ba99a585b [gdi,region] assert parameters 2025-11-18 11:42:27 +01:00
akallabeth
3607c0ac61 [gdi,gdi] remove unnecessary gdi_ClipCoords 2025-11-18 11:42:23 +01:00
akallabeth
a05f1233d4 [gdi,test] simplify TestGdiClip 2025-11-18 11:41:41 +01:00
kov-serg
047a0165a1 fix line clipping issue
removing nonsense lines
2025-11-18 11:46:54 +03:00
akallabeth
fc3aa65348 [gdi] improve codec logging 2025-10-06 08:42:49 +02:00
akallabeth
74648eb3a9 [c,standard] use C99 inline 2025-09-26 11:29:26 +02:00
akallabeth
632131b266 [deprecate] rename planar_decompress 2025-09-22 19:57:41 +02:00
Armin Novak
06e9ceff4c [channels,video] use new timer implementation
Use the new timer API to push frames in a defined interval
2025-05-16 12:11:35 +02:00
akallabeth
25f54d866f [gdi] ignore empty rects in gdi_surface_bits 2025-04-10 19:06:31 +02:00
akallabeth
89340f096f [gdi] clean up gdi_send_suppress_output 2025-03-26 20:34:57 +01:00
Armin Novak
e4df43a37a [freerdp] fix argument consistency, casts 2025-03-19 19:32:09 +01:00
akallabeth
41b0598fc1 [warnings] eliminate dead code 2025-03-04 09:57:46 +01:00
akallabeth
6d541c8691 [warnings] eliminate dead code 2025-03-04 09:53:05 +01:00
akallabeth
d4f7fb081b [warnings] fix -Wunused-function
* delete unused functions that are no longer required
* define guard functions only used while debugging
2025-02-27 19:29:46 +01:00
akallabeth
74cd8d8fe0 [freerdp,warnings] fix -Wunused-parameter 2025-02-13 15:53:54 +01:00
akallabeth
c24f81c8ad [freerdp] add missing documentation 2025-01-13 10:32:36 +01:00
akallabeth
45a7597cfa [gdi,graphics] fix region leak 2025-01-12 15:13:10 +01:00
akallabeth
d6e23d18d7 [warnings] fix return and overflow warnings 2025-01-08 18:21:57 +01:00
akallabeth
9a210124a7 [gdi] fix integer sign conversion 2025-01-07 21:28:23 +01:00
akallabeth
0969502541 [warnings] fix warnings detected by latest CI build 2025-01-03 09:53:48 +01:00
akallabeth
cc934795e4 [warnings] fix integer casting
* use asserting casts to detect overflows or sign conversions
* code cleanup for issues uncovered by casts
2025-01-01 12:58:34 +01:00
akallabeth
ba8fd2ada5 [cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
faae38120c [cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
64f4acdd2f [core,gdi] improve range asserts
use WINPR_ASSERT_AT to pinpoint location of call of checker function
2024-11-22 11:00:48 +01:00
akallabeth
78acedb40e [warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
akallabeth
a58a390726 [gdi,shape] fix logically dead code 2024-10-31 11:42:34 +01:00
akallabeth
4ec28e1f82 [warnings] fix -Wimplicit-int-conversion 2024-10-31 11:42:29 +01:00
akallabeth
dcf5a8e28c [warnings] fix -Wswitch-default 2024-10-31 11:42:24 +01:00