From: "Markus Rechberger" <mrechberger@gmail.com>
To: leslie.polzer@gmx.net
Cc: Glynn Clements <glynn@gclements.plus.com>,
linux-c-programming@vger.kernel.org
Subject: Re: Handling ioctl() argp memory
Date: Mon, 5 Mar 2007 11:49:57 +0100 [thread overview]
Message-ID: <d9def9db0703050249i697cb7ffj9dd9e8910635474e@mail.gmail.com> (raw)
In-Reply-To: <20070305052355.GA13946@wintermute.farpoint>
On 3/5/07, leslie.polzer@gmx.net <leslie.polzer@gmx.net> wrote:
> On Mon, Mar 05, 2007 at 01:54:37AM +0000, Glynn Clements wrote:
>
> > You're probably overwriting the beginning of the allocated block.
> What do you mean by that? I can surely write to allocated memory, at
> the start, end and any point between...
>
> Besides, for the record: a short Valgrind run (thanks for the reminder!)
> showed me that I calculated the space wrongly, i.e. I allocated not
> enough memory.
>
that's what I thought. I just saw that your loop over the array didn't
depend on the defined values which were used for allocating.
Markus
prev parent reply other threads:[~2007-03-05 10:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 16:48 Handling ioctl() argp memory leslie.polzer
2007-03-04 16:52 ` Markus Rechberger
2007-03-04 17:04 ` leslie.polzer
2007-03-04 18:21 ` Markus Rechberger
2007-03-05 1:54 ` Glynn Clements
2007-03-05 5:23 ` leslie.polzer
2007-03-05 6:26 ` Glynn Clements
2007-03-05 10:49 ` Markus Rechberger [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=d9def9db0703050249i697cb7ffj9dd9e8910635474e@mail.gmail.com \
--to=mrechberger@gmail.com \
--cc=glynn@gclements.plus.com \
--cc=leslie.polzer@gmx.net \
--cc=linux-c-programming@vger.kernel.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 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).