From: "Ulrich Spörlein" <uqs@spoerlein.net>
To: discuss@mdocml.bsd.lv
Subject: Logic error in mandoc.c time2a()
Date: Fri, 11 Mar 2011 21:42:04 +0100 [thread overview]
Message-ID: <20110311204204.GA85668@acme.spoerlein.net> (raw)
Hi,
now that the clang/llvm folks unbroke their static analysis tool again,
I had another run on the mdocml sources. Only one bug stood out
(disregard the 'Dead store' class).
See https://www.spoerlein.net/scan-build/mdocml/2011-03-11-1/
In time2a(), 'buf' is a stack-local buffer and its address will be
returned. Oops. Either make it global, static, use malloc/free, or have
the caller provide the buffer, not sure which solution you guys would
prefer.
Uli
--
To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv
next reply other threads:[~2011-03-11 20:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 20:42 Ulrich Spörlein [this message]
2011-03-12 0:27 ` Ingo Schwarze
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=20110311204204.GA85668@acme.spoerlein.net \
--to=uqs@spoerlein.net \
--cc=discuss@mdocml.bsd.lv \
/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 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).