On Fri, 03.04.15 13:23, Tom Gundersen (tome...@kemper.freedesktop.org) wrote:

>  
> -                tags = strdupa(value);
> +                FOREACH_WORD_SEPARATOR(word, l, value, ":", state) {
> +                        char *tag;
>  
> -                while ((next = strchr(tags, ':'))) {
> -                        next[0] = '\0';
> +                        tag = strndupa(word, l);
>  

Repeat after me: I shall not use alloca() within loops. I shall not
use alloca() within loops. I shall not use alloca() within loops.

This cannot work.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to