Commit Graph

7057 Commits

Author SHA1 Message Date
Armin Novak
9a9c74b69e [core] add null checks
when a client instance disconnects it might have failed to allocate some
resources. So ensure all used ones are there
2026-02-27 19:05:10 +01:00
Armin Novak
486caf5516 [winpr] fix InitializeCriticalSectionAndSpinCount
Check return values when used.
2026-02-27 15:52:34 +01:00
Armin Novak
7b47aac9e6 [core,rdp] fix return checks for PubSub_OnErrorInfo 2026-02-27 15:52:31 +01:00
Armin Novak
72b2d745ec [primitives,opencl] ignore initialization errors
When initializing primitives treat primitives_init_opencl_context
failures as support not available, but return success for
initialization.
2026-02-27 15:52:30 +01:00
Armin Novak
ea77d2d922 [nodiscard] fix all InitOnceExecuteOnce usages 2026-02-27 15:52:28 +01:00
Armin Novak
5e18b0149a [primitives,test] drop ALIGN macro 2026-02-27 15:52:27 +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
akallabeth
4ebe580c57 Merge pull request #12380 from mfleisz/new-logonerrinfo-define
[libfreerdp] Add new define for logon error info
2026-02-26 14:33:27 +01:00
Martin Fleisz
5146a13587 [libfreerdp] Add new defines for logon error info 2026-02-26 14:17:18 +01:00
Armin Novak
699ffa9da1 [crypto,certificate] add sanity checks to certificate_new_x509_certificate_chain
Check provided data and abort early if the values are not matching the
data received.
2026-02-26 13:46:57 +01:00
Armin Novak
10dc90cca7 [core,update] reset update->us immediately 2026-02-26 13:46:57 +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
96be117f97 [core,gateway] fix rts_read_common_pdu_header
The function does not return BOOL but 3 possible conditions, so use a
proper enum type for this.
2026-02-26 08:49:42 +01:00
Armin Novak
166a569784 [core,gateway] ignore incomplete rpc header 2026-02-25 22:52:26 +01:00
Armin Novak
01d680a081 [codec,fdk] revert use of WinPR types
Due to naming collissions no WinPR header may be included here.
2026-02-25 20:05:42 +01:00
akallabeth
6dfad2077c Merge pull request #12372 from akallabeth/gw-policy-deny
[core,utils] ignore NULL values in remove_rdpdr_type
2026-02-25 20:02:41 +01:00
Armin Novak
7591cd8e51 [core,utils] ignore NULL values in remove_rdpdr_type
if there are no redirected devices of given type ignore the NULL value
and return success.
2026-02-25 19:53:00 +01:00
Armin Novak
208bcbd153 [winpr] Add initializer functions
* Add initializer for wStream
* Add initializer for ASN1 decoder
2026-02-25 19:39:24 +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
a79e307cb9 [codec,dsp] fix integer sign warnings 2026-02-25 15:05:51 +01:00
Armin Novak
ede1dd980f [codec,dsp] fix opus constant definition type 2026-02-25 15:05:47 +01:00
Armin Novak
1366f0d646 [locale,keyboard] remove [[nodiscard]]
return value is not required to be checked.
2026-02-25 11:51:12 +01:00
Armin Novak
e9723d1b61 [attributes] update attribute definitions
* support C++
* support C23
* replace __inline et al with C11 inline
2026-02-25 11:51:11 +01:00
Armin Novak
8016117eb7 [codec,dsp] fix warnings 2026-02-25 10:20:02 +01:00
akallabeth
8892558b4e Merge pull request #12360 from akallabeth/attr-nodiscard-libfreerdp
[libfreerdp] mark internal functions [[nodiscard]]
2026-02-25 10:13:23 +01:00
Armin Novak
3fcc287b16 [warnings] initialize all va_list 2026-02-25 07:41:39 +01:00
Armin Novak
8a24443ed6 [nodiscard] fix wrong attribute position 2026-02-24 16:10:11 +01:00
Armin Novak
4e4f84d33d [libfreerdp] mark internal functions [[nodiscard]] 2026-02-24 11:54:00 +01:00
Armin Novak
a5751dfe07 [utils,signal] rename header, avoid warnings 2026-02-24 11:03:45 +01:00
Armin Novak
16a8d2bbe5 [utils,signal] fix compiler warnings 2026-02-24 09:38:59 +01:00
Armin Novak
546908ebeb [utils,signal] fix missing function declaration 2026-02-24 09:05:42 +01:00
akallabeth
86d8bf840d Merge pull request #12340 from akallabeth/smartcard-stop-fix
Smartcard stop fix
2026-02-23 17:06:12 +01:00
Armin Novak
c3c9a723e0 [core,gateway] fix rdg_pkt_type_to_string 2026-02-23 11:28:37 +01:00
Armin Novak
3d8bcd1c71 [core,gateway] parse [MS-TSGU] 2.2.10.5 HTTP_CHANNEL_RESPONSE_OPTIONAL Structure
just to avoid warnings about incompletely parsed packets. Currently
unused as no UDP support is implemented.
2026-02-23 11:10:18 +01:00
Armin Novak
1dde0b3eeb [codec,progressive] refine progressive decoding
Refinement of 1a7a4c508c that might
produce glitches.
2026-02-20 17:45:18 +01:00
Armin Novak
042d0dfd77 [channel,smartcard] fix logging issues 2026-02-20 12:04:57 +01:00
Armin Novak
33a8b879eb [utils,smartcard] stop context thread on cancel all
When cancelling all smartcard context related operations also trigger
smartcard_call_context_signal_stop to terminate all related threads.
2026-02-20 10:04:41 +01:00
Armin Novak
e8099c493d [utils,signal] implement windows handlers 2026-02-19 22:27:14 +01:00
Armin Novak
a1ebab4192 [utils,signal] split handlers per platform 2026-02-19 22:27:11 +01:00
Armin Novak
e05252cdea [codec,dsp] fix duplicate NULL checks 2026-02-18 13:24:50 +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
akallabeth
1b744c15fe Merge pull request #12319 from akallabeth/grow-reasonable
[allocations] fix growth of preallocated buffers
2026-02-17 15:23:17 +01:00
Armin Novak
118afc0b95 [allocations] fix growth of preallocated buffers
* Replace * 2 with * sizeof(WCHAR) for string usages
* Grow streams and other buffers reasonably, e.g. add 128 elements per
  try and check for possible overflows
* Add constant postfix to force them to 64bit
2026-02-17 13:54:34 +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
f3d23da0ae [codec,nsc] update function docs
* add doxygen for functions
* add support for scanline value 0
2026-02-17 09:15:33 +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