ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Artem <x-console@yandex.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Большие файлы в кде , не хватает буфера под размер
Date: Mon, 15 May 2006 17:19:19 +0300
Message-ID: <44688DE7.4070307@yandex.ru> (raw)
In-Reply-To: <200605151657.54167.kopilo4ka@gmail.com>

kopilo4ka@gmail.com wrote:
> Hi all

> 
> Немного слов что было. На расшаренном ресурсе по smb лежит образ dvd. 
> konqueror показывает размер 380 мегабайт. Виндузятники говорят что видно все 
> 4.3 гига, т.е в нашем случае 4 гигов не видно. Скачиваем. Когда скачали это 
> 380 метров, размер итоговый продолжал расти вместе с тем что скачалось, 
> прогресс-бар на 100%. Потом, видать после 2 гиг, итоговый размер скакнул в 
> отрицательную область и стал 16 млн Терабайт, 

Целочисленное переполнение. Это не буфер, это неправильно выбран тип
переменной для хранения размера файла.

что можно увидеть на первом
> скриншоте. После отметки 4 гиг счетчик пошел заново, шот 2. Смешно.
> 
> http://drake.aviora.ru/~henker/smb1.jpg по 25 кил
> http://drake.aviora.ru/~henker/smb2.jpg
>

-- 
Rgds, Artem.



      reply	other threads:[~2006-05-15 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 12:57 kopilo4ka
2006-05-15 14:19 ` Artem [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=44688DE7.4070307@yandex.ru \
    --to=x-console@yandex.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git