Skip to content

libfreerdp-core/transport: handle more than one PDUs in receiving buffer. - #2

Closed
llyzs wants to merge 1 commit into
FreeRDP:masterfrom
llyzs:network
Closed

llyzs wants to merge 1 commit into
FreeRDP:masterfrom
llyzs:network

Conversation

@llyzs

@llyzs llyzs commented Jul 3, 2011

Copy link
Copy Markdown
Member

libfreerdp-core/transport: handle more than one PDUs in receiving buffer.

@llyzs

llyzs commented Jul 4, 2011

Copy link
Copy Markdown
Member Author

cancelled.

@llyzs llyzs closed this Jul 4, 2011
@fedsed fedsed mentioned this pull request Nov 22, 2011
@ghost ghost mentioned this pull request Jan 30, 2012
@ghost ghost mentioned this pull request May 17, 2012
bjcollins added a commit to bjcollins/FreeRDP that referenced this pull request Aug 3, 2012
1. Linked Window Manager Maximize/Minimize and Restore operations to those from the Server Rail Window so that they are in sync

2. Enable things like "CTRL-ALT-DELETE" and "WindowsKey-L" to show the full desktop window again since the desktop is not actively monitored since
this was still trying to draw to the rail window without updating the size of the window to accomodate the full workspace area.

3. Changed local window coordinates to be based on the visibileOffsetX/Y- while moving server window based on WindowOffsetX/Y. I have seen various issues regarding this when trying to use a maximized window where this is a disconnect between local window coordinates and remote window coordinates. This change clears these things up.

4. Commented the XShapeCombineRectangles calls - this can cause issues where the entire window is not visible and it does not currently play well with the changes from FreeRDP#3. The gain here is greater than the loss.

5. Draw the initial workspace correctly when running across multiple monitors. The correct size was always used, but the window was only starting on the current monitor and thus could draw the window off of the viewable area.

Known Issues:

Although the changes for FreeRDP#2 worked well in the stable branch that I developed from - the desktop window shown once the rail windows are destroyed does not respond to input unless I minimize/restore the window. Once the window starts responding to input - you can hit cancel to close the desktop window and return to your rail windows again(or launch task manager, etc.). This is still a big step in the right direction as xfreerdp is now correctly acting when the rail server stops Actively Monitoring the desktop.

XShapeCombineRectangles needs to be revisited, most windows applications will give you a rectangular window anyways.
@bjcollins bjcollins mentioned this pull request Aug 3, 2012
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
```
Thinstation pushed a commit to Thinstation/thinstation that referenced this pull request May 11, 2024
	modified:   ts/build/packages/base/bin/update-initrd
	modified:   ts/build/packages/base/build/conf/64network
	modified:   ts/build/packages/chrome/etc/chrome/Default/Preferences.tpl
	modified:   ts/build/packages/devstation/bin/devcmd
	modified:   ts/build/packages/git/build/extra/bin/proxy-setup
	modified:   ts/build/packages/networkmanager/.dna
	modified:   ts/ports/binary-core/firmware/.footprint
	modified:   ts/ports/binary-core/firmware/.nostrip
	modified:   ts/ports/components/cryptodev-linux/cryptodev-linux#git-1.pkg.tar.xz
	modified:   ts/ports/kernel-modules/bbswitch/bbswitch#0.8-1.pkg.tar.xz
	modified:   ts/ports/kernel-modules/evdi/evdi#1.14.1-1.pkg.tar.xz
	modified:   ts/ports/kernel-modules/kernel-TS/.footprint
	modified:   ts/ports/kernel-modules/kernel-TS/kernel-TS#1-1.pkg.tar.xz
	modified:   ts/ports/kernel-modules/macbook12-spi-driver/macbook12-spi-driver#git-1.pkg.tar.xz
	modified:   ts/ports/kernel-modules/rtl8821ce/rtl8821ce#git-1.pkg.tar.xz
	deleted:    ts/ports/opt/FreeRDP/FreeRDP#2.0-2.7.0.pkg.tar.xz
	modified:   ts/unwind_cache/networkmanager.turbo
	modified:   ts/wind_cache/networkmanager.turbo
qmfrederik pushed a commit to qmfrederik/FreeRDP that referenced this pull request Nov 10, 2024
Merge with master tag 2.2.0 git revision d2ba84a
dobord referenced this pull request in dobord/FreeRDP Jun 29, 2025
@KT-lcz KT-lcz mentioned this pull request Jan 12, 2026
RafaelJohn9 referenced this pull request in RafaelJohn9/FreeRDP May 15, 2026
Signed-off-by: John Kagunda <[email protected]>
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.

1 participant