Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] GNU canonicalize_file_name can return a NULL pointer
- X-seq: zsh-workers 30187
- From: "Timothy Redaelli" <timothy.redaelli@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] GNU canonicalize_file_name can return a NULL pointer
- Date: Tue, 07 Feb 2012 19:45:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:to:subject:date:mime-version:from:message-id :user-agent; bh=1Ta8x/pTrWV2bfRJggQe2WcPZXOqPyfdnSPopzjSwtw=; b=Durw22OvNP8PRuc223y5ZR9PVi+wLPeDJ3mkPExB/9AAYBDb6B0QBybOJ3uvd/dsXZ zKFYqM7oQw1thV4w5DUGCbTgMMXkNO6LcIeOHtJ1jX7XH4IJFDeMjbBUiQl7UFGo1mhi dZUYGTDH6d7nQJpcvCv5hQbKxq6l1i9WHIXj0=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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