akallabeth
c1918ac189
[winpr,wlog] fix cast warning
2024-09-10 14:42:52 +02:00
akallabeth
9738fc40f3
Merge pull request #10548 from akallabeth/serial-port
...
[BSD] build-serial-port
2024-09-09 09:41:12 +02:00
akallabeth
b980bf2e14
[winpr,clipboard] use endian safe bitmap read/write
2024-09-04 21:56:44 +02:00
akallabeth
0eb0cff367
[winpr,utils] fix integer size warnings
2024-09-04 12:50:43 +02:00
akallabeth
5aff241096
Merge pull request #10554 from akallabeth/tidy-silence
...
Tidy silence
2024-09-04 10:35:22 +02:00
akallabeth
5e123735fa
[warnings] fixed sign-compare
2024-09-04 10:14:05 +02:00
akallabeth
ebbfe598dc
[winpr,utils] unify bitmap reading
...
* clipboard synthesizer needs to read the bitmap header, use the function
from utils/image
* check bitmap header in utils/image and abort if wrong
2024-09-04 09:07:18 +02:00
akallabeth
72ae7fb54f
[nolint] add cert-dcl37-c,cert-dcl51-cpp
2024-09-03 12:24:48 +02:00
Armin Novak
fe4cb6de65
[warnings] fix float/double warnings
2024-09-02 16:20:20 +02:00
akallabeth
6fb7bfd043
[winpr,unwind] fix _Unwind_GetLanguageSpecificData
...
The function has various return value definitions (void* or uintptr_t)
and no proper API versioning. So cast to the expected type regardless of
actual definition and silence linter for this specific line.
2024-08-31 11:17:54 +02:00
akallabeth
1dea19ac5f
[warnings] clang-tidy suppress warnings
...
* Suppress NOLINT(bugprone-suspicious-include)
* Suppress __STDC_WANT_LIB_EXT1__ 1 // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
2024-08-30 16:01:11 +02:00
akallabeth
500495dc00
[warnings] fix SDL3 related issues
2024-08-29 16:03:51 +02:00
akallabeth
6a3564407e
[warnings] fix clang-tidy issues in winpr
2024-08-29 15:20:39 +02:00
akallabeth
9c9d74e920
[warnings] fix redundant casts
2024-08-29 12:03:09 +02:00
akallabeth
15456e1ee1
[warnings] fix implicit widening conversion
2024-08-29 10:47:20 +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
efde29f362
[winpr,utils] Set Queue_Enqueue only once
...
In #10527 performance was measured and SetEvent did take a lot of time
in these measurements. The reset is only required once though, so use a
more fine grained trigger condition.
2024-08-29 08:30:32 +02:00
akallabeth
d0addb52bd
[winpr,utils] Reset CountdownEvent_AddCount only once
...
In #10527 performance was measured and ResetEvent did take a lot of time
in these measurements. The reset is only required once though, so use a
more fine grained trigger condition.
2024-08-29 08:30:21 +02:00
Armin Novak
d71af44bb1
[warnings] disable warnings for generated code
...
* Disable clang-tidy in test build directories
* Disable compiler warnings for test binary directories.
These contain generated code we can not change, so the warnings are just noise
2024-08-28 09:18:30 +02:00
David Fort
c7b519472b
Merge pull request #10494 from fifthdegree/asn1_int_fix
...
Fix ASN.1 integer decoding
2024-08-21 22:46:37 +02:00
Isaac Klein
3fb7bd92cc
Don't accept 0-length ASN.1 integers for decoding
2024-08-21 14:02:26 -04:00
Armin Novak
17d44e847f
[coverity] fix various warnings
2024-08-21 09:47:34 +02:00
Isaac Klein
9c413abee1
Fix ASN.1 integer decoding
...
Treat ASN.1 encoded integers with a leading zero byte and the MSB of the
second byte set as non-negative
2024-08-20 19:14:02 -04:00
akallabeth
4b7727bd4e
[winpr,utils] fix PNG bpp extraction
2024-08-19 11:50:15 +02:00
akallabeth
7f84bd5c81
[winpr,utils] fix image stride calculation
2024-08-19 11:50:11 +02:00
Ivelin
d7cbe4ed69
fix(winpr-json): typos causing make errors
2024-07-30 08:21:45 +03:00
akallabeth
f22974a95a
[winpr,utils] include current source dir
2024-07-23 09:15:00 +02:00
akallabeth
e34b8b5205
[winpr,utils] add WINPR_JSON_AddItemToArray
2024-07-19 15:52:20 +02:00
akallabeth
4099bd4e45
[warnings] integer casts/checks
2024-07-02 12:38:00 +02:00
oleg0421
34aed4e571
Fix errno undeclared error in json.c
2024-06-11 11:46:02 -07:00
Armin Novak
b19d9619f8
[utils,unwind] log _Unwind_Backtrace failure
2024-05-29 14:35:51 +02:00
Armin Novak
1dcac1618c
[utils,unwind] add return to string functions
2024-05-29 09:25:25 +02:00
akallabeth
0b035d69e1
[winpr,wlog] fix format string
...
the millisecond format string should be "%03u" instead of "%02u"
2024-05-21 14:57:26 +02:00
akallabeth
48381d0d60
[winpr,utils] add json-c compat
...
for old json-c releases < 0.14.0 add a json_object_new_null replacement
2024-05-17 12:43:02 +02:00
akallabeth
4b3ecfac47
[winpr,utils] fix cJSON detection
...
* pkg-config sets CJSON_FOUND, check for that instead of the paths, which
might be unset or set to <var>-NOTFOUND
* move detection to own file. find_package targets are meant to be used
in same directory or below, but we define the WinPR target one above,
so include it in parent
2024-05-16 13:27:22 +02:00
Armin Novak
4bdc9ad950
[winpr,utils] fix cJSON fallback detection
2024-05-15 13:46:38 +02:00
akallabeth
de49d32004
[cmake] fallback detection for cJSON
2024-05-14 21:16:43 +02:00
akallabeth
1b735a5c17
[winpr,utils] add JSON parser wrapper
...
as we now support cJSON and json-c we need to wrap the functions we use.
also allows drop in replacements for older cJSON versions lacking
certain functions.
2024-05-14 20:45:25 +02:00
akallabeth
b6db375b9b
[winpr,utils] fix libjpeg const cast
...
libjpeg API is not const correct, so we need to cast away const
fixes #10175
2024-05-12 20:30:25 +02:00
Armin Novak
e272eb3966
[warnings] fix Wshadow warnings
2024-05-08 15:30:01 +02:00
akallabeth
1b8221e5bf
[warnings] fix various minor warnings
2024-05-08 14:53:39 +02:00
akallabeth
9b6fcf728a
[winpr,asn1] fix undefined shift
2024-05-03 09:39:13 +02:00
akallabeth
71e78bedd7
[warnings] fixed sign and const
...
* fix various char/BYTE sign warnings
* fix various const warnings
* fix format string size_t
* remove unused CMake variables
2024-04-18 11:05:58 +02:00
Armin Novak
28e9094f08
[gcc] fix missing malloc warning macros
...
* Add missing WINPR_ATTR_MALLOC
* Add missing WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
2024-04-17 18:47:16 +02:00
Armin Novak
98fa2d406d
[coverity] 1543226 Data race condition
2024-04-15 11:30:31 +02:00
akallabeth
8f9707897c
[coverity] 1543219 Dereference before null check
2024-04-12 12:41:42 +02:00
akallabeth
0c7537c840
[coverity] 1543230 Missing unlock
2024-04-12 09:45:09 +02:00
akallabeth
6217076b47
[coverity] 1543030 Dereference before null check
2024-04-12 09:45:09 +02:00
akallabeth
4732f379d4
[winpr,sysinfo] unify time function use
...
* Add new function winpr_GetTickCount64NS for high resolution tick
count with (up to) nanosecond resolution
* Add new function winpr_GetUnixTimeNS for high resolution system time
as nanoseconds since 1.1.1970
* Replace use of clock_gettime and gettimeofday in whole project with
these new functions
* Add new macros WINPR_TIME_NS_TO_* and WINPR_TIME_NS_REM_* to convert
the nano second count to less resolution or get the remainder in the
desired resolution
2024-03-11 09:54:10 +01:00
akallabeth
d8c0e7546e
[winpr,utils] allow quoted sub arguments
...
fixes #9890 .
2024-02-27 14:15:56 +01:00