zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Chatty little precompiler for _arguments
Date: Thu, 23 Sep 1999 16:07:21 +0200 (MET DST)	[thread overview]
Message-ID: <199909231407.QAA24734@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 23 Sep 1999 22:57:30 +0900


Tanaka Akira wrote:

> In article <199909230913.LAA23608@beta.informatik.hu-berlin.de>,
>   Sven Wischnowsky <wischnow@informatik.hu-berlin.de> writes:
> 
> > The longest string a character can be quoted to is three characters...
> 
> It's not longest, in current implementation at least.
> 
> Z:akr@is27e1u11% Src/zsh -f
> is27e1u11% a="'''''''''''"
> is27e1u11% print -lr - ${(qq)a}
> zsh: segmentation fault (core dumped)  Src/zsh -f
> Z:akr@is27e1u11% 

Ouch.

Bye
 Sven

--- os/utils.c	Thu Sep 23 12:30:20 1999
+++ Src/utils.c	Thu Sep 23 16:05:22 1999
@@ -2976,7 +2976,7 @@
 {
     const char *u, *tt;
     char *v;
-    char *buf = ncalloc(3 * strlen(s) + 1);
+    char *buf = ncalloc(4 * strlen(s) + 1);
     int sf = 0;
 
     tt = v = buf;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-09-23 14:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-23 14:07 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-23 10:28 Sven Wischnowsky
1999-09-23 14:12 ` Tanaka Akira
1999-09-23 15:12   ` Bart Schaefer
1999-09-25  2:53     ` Tanaka Akira
1999-09-23  9:13 Sven Wischnowsky
1999-09-23 13:57 ` Tanaka Akira
1999-09-21  7:15 Sven Wischnowsky
1999-09-20 12:57 Sven Wischnowsky
1999-09-20  8:43 Sven Wischnowsky
1999-09-20 12:15 ` PATCH: was: " Sven Wischnowsky
1999-09-20 16:36   ` Bart Schaefer
1999-09-23  1:39 ` Tanaka Akira
1999-09-19 22:57 Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909231407.QAA24734@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).