set-nth trouble?

Notices and updates
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

set-nth trouble?

Post by Dmi »

Hi, Lutz!

This looks like a list boundary crossing in set-nth:

Code: Select all

newLISP v.8.9.3 on Linux, execute 'newlisp -h' for more info.

> (string? '())
nil
> (set-nth -1 '() 2)
()
> (string? '())
2
> 
WBR, Dmi

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Thanks DMI, this is a dangerous one introduced in 8.8.0 with, this will be fixed shortly.

Lutz

Locked