From: "Jan Djärv" <jan.h.d@swipnet.se>
Subject: Re: Problem report #85
Date: Thu, 11 May 2006 08:58:49 +0200 [thread overview]
Message-ID: <4462E0A9.4050200@swipnet.se> (raw)
In-Reply-To: <200605110120.k4B1Kjfj011062@scanner2.ics.uci.edu>
Dan Nicolaescu skrev:
> CID: 85
> Checker: USE_AFTER_FREE (help)
> File: base/src/emacs/src/fileio.c
> Function: Finsert_file_contents
> Description: Using freed pointer "conversion_buffer"
>
> Event freed_arg: Pointer "conversion_buffer" freed by function "xfree" [model]
> Also see events: [double_free][double_free][use_after_free][use_after_free]
>
> 4326 xfree (conversion_buffer);
> 4327 coding_free_composition_data (&coding);
>
> At conditional (1): "how_much == -1" taking false path
>
> 4328 if (how_much == -1)
> 4329 error ("IO error reading %s: %s",
> 4330 SDATA (orig_filename), emacs_strerror (errno));
>
> At conditional (2): "how_much == -2" taking false path
>
> 4331 else if (how_much == -2)
> 4332 error ("maximum buffer size exceeded");
> 4333 }
If how_much < 0 (tested before the code snippet above), it must be -1, since
that is what emacs_read may return. So "how_much == -1" taking false path can
not happen. I don't see how how_much can become -2, so that code is probably
dead (but harmless).
Jan D.
prev parent reply other threads:[~2006-05-11 6:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-11 1:20 Problem report #85 Dan Nicolaescu
2006-05-11 4:14 ` Problem report #85 RESOLVED Kenichi Handa
2006-05-11 6:58 ` Jan Djärv [this message]
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=4462E0A9.4050200@swipnet.se \
--to=jan.h.d@swipnet.se \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.