newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on December 08, 2005, 01:15:35 PM

Title: Limit input data in -x mode
Post by: newdep on December 08, 2005, 01:15:35 PM
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.
Title:
Post by: Lutz on December 08, 2005, 02:03:46 PM
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
Title:
Post by: newdep on December 08, 2005, 02:31:56 PM
Oke.. so its always 256 characters also using a 'net-receive in x-event handling?
Title:
Post by: Lutz on December 10, 2005, 03:25:35 PM
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