All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: Horst Kronstorfer <hkronsto-USXAA5bZaHGDvotElmWtJA@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: [PATCH] dtc: Fix zero-length input segfault
Date: Fri, 17 Feb 2012 09:14:39 -0600	[thread overview]
Message-ID: <E1RyPWB-0000Ts-1g@jdl.com> (raw)
In-Reply-To: <1328605373-14063-1-git-send-email-hkronsto-USXAA5bZaHGDvotElmWtJA@public.gmane.org>

> This patch fixes a segmentation fault caused by dereferencing a NULL
> pointer (pos->file aka yylloc.file) in srcpos_string when the input
> length is 0 (fe 'dtc </dev/null'.) Reason: yylloc.file is initialized
> with 0 and the tokenizer, which updates yylloc.file via srcpos_update
> doesn't get a chance to run on zero-length input.
> 
> Signed-off-by: Horst Kronstorfer <hkronsto-USXAA5bZaHGDvotElmWtJA@public.gmane.org>

Applied.

Thanks,
jdl

  parent reply	other threads:[~2012-02-17 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07  9:02 [PATCH] dtc: Fix zero-length input segfault Horst Kronstorfer
     [not found] ` <1328605373-14063-1-git-send-email-hkronsto-USXAA5bZaHGDvotElmWtJA@public.gmane.org>
2012-02-17 15:14   ` Jon Loeliger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-08  7:22 Horst Kronstorfer

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=E1RyPWB-0000Ts-1g@jdl.com \
    --to=jdl-cyomk+44s/e@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=hkronsto-USXAA5bZaHGDvotElmWtJA@public.gmane.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.