Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] GNU canonicalize_file_name can return a NULL pointer



Hi,
In Src/hist.c on line 1668 there is a NULL pointer dereference because GNU canonicalize_file_name returns NULL on some errors.

In attachment you will find a small patch that fixes that bug.

If you want to reproduce it you can do (under GNU/Linux) a simple: zsh -c 'a=(a /b) ; echo ${a:A}'

Thanks

Attachment: binUi6DC0P_14.bin
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author