ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <ab@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [JT] scrollkeeper
Date: Tue, 26 Jun 2007 14:08:15 +0400
Message-ID: <4680E58F.4070209@altlinux.org> (raw)
In-Reply-To: <20070626132051.41dda5e6@mission>

Alexey Rusakov пишет:
> On Tue, 26 Jun 2007 12:32:04 +0400
> Epiphanov Sergei wrote:
> 
>> В сообщении от Monday 25 June 2007 20:50:46 Aleksey Novodvorsky написал(а):
>>>> Ах вот откуда появлялся этот несчастный /scrollkeeper. Жуть какая, и
>>>> ведь исходники не трогались между старой-старой и новой сборками. Ничего
>>>> не понимаю.
>>> Там с prefix ничего по дороге не случилось?
>> Нет, в create_database_directory есть вызов команды на создание 
>> каталога /var/lib/scrollkeeper (sk_mkdir_with_parents). Так вот, в данной 
>> функции есть разбор нужного пути по токенам с последующей сборкой из них 
>> частичных путей. Так вот, вызов вида:
>>
>> sprintf(path, "%s%s", path, token);
Такого рода операции имеют неопределенный результат в C (i += (i++) +
(i++) из их числа), если только path не объявлена как volatile, что для
строк бессмысленно.

Так что код этот изначально был хрупкий, его надо в любом случае
переписывать.
-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/


  parent reply	other threads:[~2007-06-26 10:08 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-24  0:33 [devel] [cyber] I: Sisyphus-20070624 i586 beehive_status: +99 -35 (116) Igor Zubkov
2007-06-24  9:12 ` Vitaly Lipatov
2007-06-24  9:42   ` Igor Zubkov
2007-06-24 10:53     ` Vitaly Lipatov
2007-06-25 11:55       ` Alexey Rusakov
2007-06-25 12:27         ` Epiphanov Sergei
2007-06-25 12:28         ` Epiphanov Sergei
2007-06-25 12:46           ` Alexey Rusakov
2007-06-25 12:51             ` Epiphanov Sergei
2007-06-25 13:37               ` Alexey Rusakov
2007-06-25 14:42                 ` Epiphanov Sergei
2007-06-25 15:02                   ` Alexey Rusakov
2007-06-25 15:12                     ` Epiphanov Sergei
2007-06-25 15:14                     ` Epiphanov Sergei
2007-06-25 16:46                       ` Alexey Rusakov
2007-06-25 16:50                         ` Aleksey Novodvorsky
2007-06-25 17:08                           ` Alexey Rusakov
2007-06-26 10:19                             ` [devel] scrollkeeper is dead Dmitry V. Levin
2007-06-26 10:26                               ` Epiphanov Sergei
2007-06-26 10:29                                 ` Dmitry V. Levin
2007-06-26 10:33                                   ` Epiphanov Sergei
2007-06-26 10:37                                     ` Epiphanov Sergei
2007-06-26 11:37                                       ` Alexey Rusakov
2007-06-26 11:40                               ` Alexey Rusakov
2007-06-26 11:54                                 ` Dmitry V. Levin
2007-06-26 15:26                                   ` Alexey Rusakov
2007-06-26  8:32                           ` [devel] [cyber] I: Sisyphus-20070624 i586 beehive_status: +99 -35 (116) Epiphanov Sergei
2007-06-26  9:20                             ` [devel] [JT] scrollkeeper Alexey Rusakov
2007-06-26  9:25                               ` Epiphanov Sergei
2007-06-26  9:44                                 ` Alexey Rusakov
2007-06-26  9:56                                   ` Epiphanov Sergei
2007-06-26 10:16                                     ` Dmitry V. Levin
2007-06-26 10:29                                       ` Epiphanov Sergei
2007-06-26 11:36                                         ` Alexey Rusakov
2007-06-26 23:09                                         ` Денис Смирнов
2007-06-27  6:50                                           ` Epiphanov Sergei
2007-06-26 10:08                               ` Alexander Bokovoy [this message]
2007-06-26 10:15                                 ` [devel] scrollkeeper is broken Dmitry V. Levin
2007-06-25 15:11                 ` [devel] [cyber] scrollkeeper Epiphanov Sergei
2007-06-25 13:01     ` [devel] [cyber] I: Sisyphus-20070624 i586 beehive_status: +99 -35 (116) Epiphanov Sergei
2007-06-25 13:39       ` Alexey Rusakov
2007-06-25 14:11         ` Epiphanov Sergei
2007-06-25 13:20   ` Igor Zubkov
2007-06-25 11:57 ` Alexey Rusakov
2007-06-25 23:13 ` Dmitry V. Levin
2007-06-26 14:44   ` Igor Zubkov

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=4680E58F.4070209@altlinux.org \
    --to=ab@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