Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  vncserver - Integer overflow in srand

    Posted Thu April 15, 2021 04:19 AM
    Hi - I'm using tightvnc-server.ppc 1.3.10-2 from the AIX Toolbox.

    When I run vncserver as any user I get:

    Integer overflow in srand at /usr/bin/X11/vncserver line 151.

    Line 151 is:
    srand(time+$$+unpack("L",`cat $vncUserDir/passwd`));

    Is there a fix for this?

    Thanks
    Dean

    ------------------------------
    Dean Rowswell
    ------------------------------

    #AIXOpenSource


  • 2.  RE: vncserver - Integer overflow in srand

    Posted Thu April 15, 2021 04:51 AM
    It's a warning only. The vncserver would have been up and running.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: vncserver - Integer overflow in srand

    Posted Thu April 15, 2021 10:11 AM
    Hi - customer I'm working with fixed the warning message by changing the first line of the vncserver script to use 64-bit perl.

    $ head -1 /usr/bin/X11/vncserver
    #!/usr/bin/perl64

    Running vncserver does not display the warning message.anymore.

    Thanks
    Dean

    ------------------------------
    Dean Rowswell
    ------------------------------



  • 4.  RE: vncserver - Integer overflow in srand

    Posted Wed April 21, 2021 12:16 PM
    Thank you

    ------------------------------
    SANKET RATHI
    ------------------------------