Limit input data in -x mode

Started by newdep, December 08, 2005, 01:15:35 PM

Previous topic - Next topic

newdep

Hi Lutz,



How can I limit the amount of data that is taken by newlisp running

in -x mode?



I.e. what does this do exactly internaly in newlisp ->

(define (x-event request) (print request))

Does it do any buffering internaly in newlisp? Could it be a security risk?



I want to prevent newlisp from overrunning the buffer.. or at least preventing newlisp from buffer problems etc...



any hint is welcome..



regards, Norman.
-- (define? (Cornflakes))

Lutz

#1
Input line length is limited to 254 characters, no buffer overflow is possible. As of my knowledge there are no buffer overfllow situations possible in newLISP. The code has been specfically cleaned up for this.



Lutz

newdep

#2
Oke.. so its always 256 characters also using a 'net-receive in x-event handling?
-- (define? (Cornflakes))

Lutz

#3
Only the parameter passed by x-event is limited to 255. In 'net-receive' you define the maximum of chars to receive in the size parameter.



Lutz