From: Damir Shayhutdinov <damir@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Опять переполнение буфера (memcpy)
Date: Fri, 13 Nov 2009 11:34:54 +0300
Message-ID: <679044850911130034o36c7657bv5e7af93a97ab9b1f@mail.gmail.com> (raw)
In-Reply-To: <4AFD18B2.1050200@mmedia2.kemsu.ru>
>>> https://bugzilla.altlinux.org/show_bug.cgi?id=22276
>>
>> Лучше б ссылку на git дали, чтоб хоть исходники можно было посмотреть.
>
> http://tinyurl.com/yzmh82g
Ок, тогда все понятно.
334 char spb[6];
335 char *spb_walk = spb;
Размер буфера - 6 байт.
Этого не хватает, чтобы вместить unsigned long на x86_64 (8 байт),
который туда суется через memcpy.
Для решения можно исправить в строке 334 число 6 на число 10.
next prev parent reply other threads:[~2009-11-13 8:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 5:49 REAL
2009-11-13 8:05 ` Damir Shayhutdinov
2009-11-13 8:28 ` REAL
2009-11-13 8:34 ` Damir Shayhutdinov [this message]
2009-11-13 9:00 ` REAL
2009-11-13 10:29 ` Sergey Vlasov
2009-11-13 11:08 ` Boris Savelev
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=679044850911130034o36c7657bv5e7af93a97ab9b1f@mail.gmail.com \
--to=damir@altlinux.org \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git