Commit Graph

990 Commits

Author SHA1 Message Date
akallabeth
ec030e8255 [winpr,stream] implement reference counting for streams 2025-02-27 20:30:25 +01:00
akallabeth
5b9a1b5b1f [winpr,clipboard] define guard DIBv5 support 2025-02-27 08:33:39 +01:00
akallabeth
a520f845a3 [warnings] fix -Wunused-macro
comment or delete macros that were not used.
2025-02-26 22:12:18 +01:00
KarelChanivecky
b16a23c2bc Fix WINPR_JSON_AddItemToArray compatibility with cJSON < 1.7.13
Modified the WINPR_JSON_AddItemToArray function to not expect a return value from cJSON_AddItemToArray. WINPR_JSON_AddItemToArray failure is given by the same conditions that cause add_item_to_array. add_item_to_array is a private cJSON function called by cJSON_AddItemToArray. The logic analysis is based on cJSON 1.7.12, which is the last release before cJSON_AddItemToArray's signature changed to include a bool return. See https://github.com/DaveGamble/cJSON/blob/v1.7.12/cJSON.c line: 1848.
2025-02-26 13:42:10 +01:00
akallabeth
5707e43396 [winpr,utils] warn if image format is used but not build in 2025-02-20 11:45:38 +01:00
akallabeth
76c2944d99 [winpr,warnings] fix -Wunused-parameter 2025-02-13 15:53:51 +01:00
akallabeth
85441e4d32 [winpr,image] fix missing check for 0 allocation 2025-02-13 14:43:25 +01:00
akallabeth
44f5b6c409 [warnings] fix various clang warnings 2025-02-04 11:22:00 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
8202587953 [winpr,wlog] fix possible NULL dereference 2025-01-13 10:18:20 +01:00
akallabeth
de1e31c706 [winpr,wlog] fix a leak on WLog_New failing 2025-01-13 09:14:52 +01:00
akallabeth
307bf48870 [warnings] fix integer casting in winpr
* use WINPR_ASSERTING_INT_CAST to detect overflows in sign or narrow
  integer casts
* replace defines with static variables
2025-01-03 10:08:57 +01:00
akallabeth
a8b05717bf [cmake] set SYSTEM for external includes
* add winpr_system_includ_directory_add macro for WinPR related external
  include directories
* set target property SYSTEM for SDL related targets
2024-12-18 20:41:59 +01:00
akallabeth
a3db26c57a [warnings] fix cast warnings 2024-12-10 17:26:37 +01:00
akallabeth
10faedf72b [winpr,json] fix include for json-c
The default include contains the json-c path, so do not use it when
including headers.
2024-12-10 15:10:00 +01:00
akallabeth
a461f7bc4b [winpr,streampool] Add StreamPool_WaitForReturn 2024-12-10 13:10:23 +01:00
akallabeth
7932d46a48 [winpr,streampool] improve statistics 2024-12-10 11:40:20 +01:00
akallabeth
08bd80b099 [winpr,streampool] add backtrace locations
For debugging purposes add a backtrace to each available and used
stream.
2024-12-10 11:40:11 +01:00
Armin Novak
35c687a0c4 [winpr,stream] add StreamPool_UsedCount 2024-12-10 11:40:01 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
Armin Novak
7643ecbf25 [winpr,debug] WINPR_ATTR_MALLOC backtrace functions 2024-12-06 09:15:54 +01:00
akallabeth
83f2f21ad3 [warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +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
136a8998c4 [winpr,stream] fix 64bit stream function
* Fix Stream_Write_UINT64* functions
* Add unit tests to cover that
2024-11-21 18:40:11 +01:00
akallabeth
b5f95e0f87 [codespell] fix spelling mistakes 2024-11-21 11:28:06 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00
akallabeth
db07add07a [deprecation] replace all usages of sprintf 2024-11-12 16:46:11 +01:00
akallabeth
78acedb40e [warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
Martin Fleisz
1520d94d33 Merge pull request #10797 from akallabeth/warn-fixes
Warn fixes
2024-11-07 13:50:51 +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
akallabeth
d232037e18 [winpr,asn1] fix writing integers
ASN1 integers are signed.
2024-10-30 16:55:56 +01:00
akallabeth
dc76879e0b [warnings] fix some compiler warnings
* fix compiler warnings found in a lot of places
* add missing enum type for clipboard channel
* mark deallocator for winpr image function
2024-10-30 16:12:20 +01:00
akallabeth
aa954d9be9 [warnings] fix various compiler warnings 2024-10-29 15:49:43 +01:00
Armin Novak
527db6783b [cmake] split tests
* Keep BUILD_TESTING, but only run tests compatible with API (for
  packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
  tests that modify API to be run on our CI
2024-10-24 09:45:44 +02:00
Armin Novak
f488d15b7a [winpr,utils] update TestStream 2024-10-23 16:01:30 +02:00
akallabeth
9caf38bbb6 [warnings] unify CommandLineParseCommaSeparatedValues
CommandLineParseCommaSeparatedValues does some internal hack to allow
the allocated char** to be cleaned up by free.
This enforces compiler warnings as the pointer types do not match.
Use a new free function CommandLineParserFree instead
2024-10-22 21:11:58 +02:00
akallabeth
52d32d812c [winpr,utils] lock message queue on size 2024-10-16 13:32:18 +02:00
Martin Fleisz
dcc288c3d1 Merge pull request #10704 from akallabeth/int-narrow-cleanups
Int narrow cleanups
2024-10-14 09:51:06 +02:00
akallabeth
1952cd0e66 [winpr,utils] fix undefined unwind symbols
on arm some reason codes are not defined.
2024-10-08 10:09:19 +02:00
akallabeth
544c6ddce6 [warnings] fix integer narrowing 2024-10-03 21:21:42 +02:00
akallabeth
53497a572d [warnings] fix integer narrowing 2024-10-03 21:21:42 +02:00
akallabeth
57ed259be2 [warnings] fix integer narrowing 2024-10-03 21:21:41 +02:00
akallabeth
b19dcf8d68 [warnings] fix integer narrowing 2024-10-03 21:21:41 +02:00
akallabeth
eceab9aedb [warnings] fix integer narrowing 2024-10-03 21:21:40 +02:00
akallabeth
6c8c67b385 Merge pull request #10677 from akallabeth/int-narrow
Int narrow
2024-10-03 21:17:56 +02:00
akallabeth
4783546582 [winpr,wlog] fix integer narrow 2024-10-03 18:58:41 +02:00
akallabeth
8a042b33d6 [winpr,utils] fix integer narrow 2024-10-03 18:58:39 +02:00
Martin Fleisz
966ddd13df Merge pull request #10694 from akallabeth/qa-fixes
Qa fixes
2024-10-03 13:09:06 +02:00