GNU bug report logs -
#75845
mapconcat crashes for unreasonable self-modifications
Previous Next
Full log
View this message in rfc822 format
> Thanks, adding Stefan and Mattias to the discussion, in the hope that
> they could review the patch and comment.
The patch LGTM.
>> if (! CONSP (tail))
>> - return i;
>> + error ("list modified by mapping function");
>
> I think this error message is not explicit enough: it doesn't tell
> which list was modified by what function. mapcar and mapconcat are
> many times invoked by code that has little to do with the level which
> could make sense to the user, so we should try to provide as much
> contextual information as possible. Perhaps something like
>
> sequence arg to `mapcar' or `mapconcat' modified by its mapping function arg
Since this is in the list-part of the code, I'd prefer "list" rather
than "sequence", since it's both shorter and more precise. But I'd
capitalize that first word.
> string arg of mapcar or mapconcat clobbered by its mapping function arg
+1 for "clobbered"
Stefan
This bug report was last modified 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.