Menu

#1349 Random command line corruption in tvnviewer

None
open-accepted
Anton
None
8
2016-02-12
2015-03-25
Tim Josten
No

I am invoking tvnviewer.exe with host::port parameter. Let's say it is:
192.168.60.93:5901

And sometimes it fails with an error it cannot connect to client, but... if I look at the title bar of the error message it says:
12.168.60.3::501 - TightVNC Viewer
or
192.168.6.93::591 - TightVNC Viewer

this is awful! is it a joke?
in the first example number '9' is removed, in the second it is '0'. What's that randomness? I can't believe there can be a bug which is causing such randomness!

Discussion

  • Joachim Damm

    Joachim Damm - 2015-07-20

    I was debugging tvnviewer.exe for a memory access violation an found two bugs in the code, one is causing this error.

    in the file tvnviewer\ConnectionData.cpp
    row 82:
    chompedString.removeChars(spaceChar, sizeof(spaceChar));
    should be:
    chompedString.removeChars(spaceChar, sizeof(spaceChar) / sizeof(TCHAR));

     

    Last edit: Joachim Damm 2015-07-20
  • Anton

    Anton - 2016-02-12
    • status: open --> open-accepted
    • assigned_to: Anton
    • Group: -->
     

Log in to post a comment.