[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no]directives switch |
Date: |
Thu, 31 May 2012 20:45:01 +0100 |
Hi Paul,
> +static void directive_onoff(int onoff)
> +{
> + if (directives_index >= sizeof(directives_stack)) {
> + fprintf(stderr, "mhbuild: #on/off overflow, continuing\n");
> + return;
> + }
> + directives_stack[++directives_index] = onoff;
> +}
I think the test is wrong. If 31 >= 32 is false so
directives_stack[++31] will be written to.
Cheers, Ralph.
- Re: [Nmh-workers] UTF-8 message bodies, (continued)
- Re: [Nmh-workers] UTF-8 message bodies, Aleksander Matuszak, 2012/05/30
- Re: [Nmh-workers] UTF-8 message bodies, Ken Hornstein, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Aleksander Matuszak, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Ken Hornstein, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Paul Fox, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Ken Hornstein, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Paul Fox, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, Ken Hornstein, 2012/05/31
- [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no]directives switch, Paul Fox, 2012/05/31
- Re: [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no]directives switch, Ken Hornstein, 2012/05/31
- Re: [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no]directives switch,
Ralph Corderoy <=
- Re: [Nmh-workers] [PATCH] mhbuild: implement #on/#off/#pop, and the -[no]directives switch, Paul Fox, 2012/05/31
- Re: [Nmh-workers] UTF-8 message bodies, valdis . kletnieks, 2012/05/31