From: "Alex V. Myltsev" <avm@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] torsmo-0.18-alt2: rebuild failed [14]
Date: Thu, 18 May 2006 01:25:08 +0400
Message-ID: <446B94B4.8030900@altlinux.ru> (raw)
In-Reply-To: <446B8F16.3070507@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Ilya wrote:
>> лично у меня при запуске падает.
> Так она не падает, она /sys ищет
/sys она искала, это да, но она всё-таки падала.
Был типичный buffer overflow: в open_i2c_sensor был буфер buf размером
64 байта, а в get_first_file_* ожидали буфера размером 256 (и делали в
него strncpy).
Люди! Не пишите на C.
[-- Attachment #2: torsmo-0.18-alt-memory.patch --]
[-- Type: text/plain, Size: 282 bytes --]
--- torsmo-0.18/linux.c 2004-12-22 00:20:07 +0300
+++ torsmo-0.18.avm/linux.c 2006-05-18 01:18:05 +0400
@@ -302,7 +302,7 @@
int open_i2c_sensor(const char *dev, const char *type, int n, int *div) {
char path[256];
- char buf[64];
+ char buf[256];
int fd;
int divfd;
next prev parent reply other threads:[~2006-05-17 21:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-17 19:44 ` Ilya
2006-05-17 19:49 ` Damir Shayhutdinov
2006-05-17 20:11 ` Alexey Rusakov
2006-05-17 20:13 ` Alex V. Myltsev
2006-05-17 21:01 ` Ilya
2006-05-17 21:25 ` Alex V. Myltsev [this message]
2006-05-18 6:39 ` Sergey Pinaev
2006-05-18 7:23 ` [devel] [JT] " Andrei Bulava
2006-05-18 8:07 ` [devel] [JT] mldonkey bug Alex V. Myltsev
2006-05-18 18:46 ` [devel] [JT] torsmo-0.18-alt2: rebuild failed [14] Konstantin A. Lepikhov
2006-05-19 6:32 ` [devel] mldonkey ? ????? > 2 GiB Andrei Bulava
2006-05-19 6:48 ` [devel] глюки thunderbird (was: Re: mldonkey ? ????? > 2 GiB) Andrei Bulava
2006-05-19 6:39 ` [devel] mldonkey и файлы > 2 GiB Andrei Bulava
2006-05-19 6:43 ` Konstantin A. Lepikhov
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=446B94B4.8030900@altlinux.ru \
--to=avm@altlinux.ru \
--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