Re: Security



On 2008-01-31, Steve-o <stknig@xxxxxxxxxxxxxx> wrote:
Does anyone have any specific pointers on how to write more secure
code in Common Lisp? For instance, with C/C++ programs you have to
be careful not to allow buffer overrun's to occur. But I can't see
how this could be a problem in Lisp.

I suppose all secure programming issues are potentially there... No?

- Integer overflow (if you use fixnums, double-floats, or other
fixed-size numbers)
- SQL injection
- Cross site scripting, if it's a web application
- Although with (safety 1) you can't really crash the application,
you can have buffer overflows and also crash your Lisp image
with (safety0). So, maybe "not using (safety 0) for code that will
handle non-validated input" should be added to the list
(most people will tell you to not use (safety 0) at all)
- Race conditions

Just my 0.02

J.

.



Relevant Pages

  • Re: emacs inferior-lisp problem
    ... *inferior-lisp* buffer with sbcl interpreter which as far as I can tell ... tell this has nothing to do with the inferior-lisp buffer because it works ... I have read in various tutorials that I should be able to write lisp ... I suspect your getting confused between emacs lisp and common ...
    (comp.lang.lisp)
  • Re: format question
    ... What REPL and what scratch buffer? ... like you're using the emacs lisp scratch bufffer and a common lisp repl. ...
    (comp.lang.lisp)
  • Re: Is Lisp more than another language?
    ... >> that SLIME gives you a repl buffer as well as a code buffer. ... > Emacs can do that for you: run your Lisp in a shell buffer. ... > Your REPL is there, and you use other buffers for editing files. ... Besides, if the shell buffer did everything just as well as SLIME, ...
    (comp.lang.lisp)
  • Re: So what is the right way to write string.join?
    ... So what is the Right Way to write this function in Lisp, ... no arbitrary limit on the size of the input list without writing too ... allocate a buffer and fill it. ... (write-in (first word-list)) ...
    (comp.lang.lisp)
  • Re: Is Lisp more than another language?
    ... Having to learn an IDE tool like SLIME ... > that SLIME gives you a repl buffer as well as a code buffer. ... Emacs can do that for you: run your Lisp in a shell buffer. ...
    (comp.lang.lisp)