Skip to content

Various trivial API changes - #6

Merged
awakecoding merged 6 commits into
FreeRDP:masterfrom
llyzs:api
Jul 7, 2011
Merged

awakecoding merged 6 commits into
FreeRDP:masterfrom
llyzs:api

Conversation

@llyzs

@llyzs llyzs commented Jul 7, 2011

Copy link
Copy Markdown
Member

No description provided.

awakecoding added a commit that referenced this pull request Jul 7, 2011
Great changes for improvements on the include header structure
@awakecoding
awakecoding merged commit 6577764 into FreeRDP:master Jul 7, 2011
@ghost ghost mentioned this pull request Jan 30, 2012
@ghost ghost mentioned this pull request May 22, 2012
@dagbdagb dagbdagb mentioned this pull request Sep 9, 2021
@spronovo spronovo mentioned this pull request Oct 19, 2021
akallabeth pushed a commit that referenced this pull request Jun 7, 2023
Uninitialized bytes in __interceptor_strlen at offset 0 inside [0x701000000040, 1)
==220==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x535c13 in freerdp_assistance_hex_string_to_bin /src/FreeRDP/libfreerdp/common/assistance.c:711:11
    #1 0x533deb in LLVMFuzzerTestOneInput /src/FreeRDP/libfreerdp/common/test/TestFuzzCommonAssistanceHexStringToBin.c:5:15
    #2 0x43f5f3 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #3 0x4409a4 in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:804:3
    #4 0x440e79 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:857:3
    #5 0x4304df in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:912:6
    #6 0x459b32 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    #7 0x7effc08bb082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082) (BuildId: 1878e6b475720c7c51969e69ab2d276fae6d1dee)
    #8 0x420f1d in _start (/tmp/not-out/tmpu5o6go0a/TestFuzzCommonAssistanceHexStringToBin+0x420f1d)
akallabeth pushed a commit that referenced this pull request Jun 7, 2023
…e_file_buffer

```
READ of size 2 at 0x602000000091 thread T0
SCARINESS: 14 (2-byte-read-heap-buffer-overflow)
    #0 0x4c6fb9 in StrstrCheck(void*, char*, char const*, char const*) /src/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:580:5
    #1 0x4c6df1 in strstr /src/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:597:5
    #2 0x56c9ba in freerdp_assistance_parse_file_buffer /src/FreeRDP/libfreerdp/common/assistance.c:743:6
    #3 0x56b58e in parse_file_buffer /src/FreeRDP/libfreerdp/common/test/TestFuzzCommonAssistanceParseFileBuffer.c:11:11
    #4 0x56b58e in LLVMFuzzerTestOneInput /src/FreeRDP/libfreerdp/common/test/TestFuzzCommonAssistanceParseFileBuffer.c:20:2
    #5 0x43f5e3 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:611:15
    #6 0x440994 in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:804:3
```
@KT-lcz KT-lcz mentioned this pull request Jan 12, 2026
GGPrompts pushed a commit to GGPrompts/FreeRDP that referenced this pull request Apr 15, 2026
RafaelJohn9 added a commit to RafaelJohn9/FreeRDP that referenced this pull request May 15, 2026
Signed-off-by: John Kagunda <[email protected]>
dfsjklw added a commit to dfsjklw/FreeRDP that referenced this pull request Sep 15, 2026
The event queue shared by the Android JNI layer was not synchronised:
android_push_event() runs on the JNI/UI thread while android_pop_event()
and android_event_free() run on the RDP thread. Dragging with three or
four fingers multiplies the event rate, and the racy count++/count-- plus
the array shift inside pop could place the same event pointer in two
slots, so the event was freed twice and scudo aborted the process:

  Abort message: 'Scudo ERROR: invalid chunk state when deallocating ...'
  FreeRDP#5 android_event_touch_free
  FreeRDP#6 android_event_free
  FreeRDP#7 android_process_event

Protect size/count/events with a CRITICAL_SECTION, drop the racy
android_peek_event() helper, reset the wake up event once the queue is
drained (a push racing with the reset used to strand contacts) and free
the pending events on shutdown instead of leaking them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants