严重的溢出漏洞

中本聪SN-2422

先别更新提供下载的区块链文件。使用别人提供的区块链文件时,不要选已经更新到最新区块的版本。稍微旧一点的更好,这样它才能下载并校验最近的区块。

Don't update the block chain download. When you take someone's block chain download, you don't want it right up to the end. A somewhat old one is better so it can download and verify the most recent blocks.

tcatm 的 4 路 SSE2 SHA-256 在 sha256.cpp 里,几个修订之前就上传了。

tcatm's 4-way SSE2 SHA-256 is in the file sha256.cpp and already uploaded a few revs ago.

我刚上传了 rev 134,修改了 makefile.unix,使 Linux 上的构建可以包含这部分代码。现在在 Linux 上构建 rev 134 就会得到 -4way 开关。

I just now uploaded rev 134 which is the makefile.unix that enables building with it on Linux. If you build rev 134 on Linux now you'll get the -4way switch.

如果你因此构建出问题,就编辑 makefile.unix 然后:

  • 去掉 -DFOURWAYSSE2
  • 从下面这些行末尾去掉 obj/sha256.o:

bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o

bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o

If you have problems building because of it, then edit makefile.unix and:

  • remove -DFOURWAYSSE2
  • remove obj/sha256.o from the end of these lines:

bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o

bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o

我构建的 0.3.10 Linux 版会带 -4way 选项。

The 0.3.10 linux build will have the -4way option when I build it.

Windows 补丁下载在这里:

Here are the patch downloads for Windows:

SHA1 16645ec5fcdb35bc54bc7195309a1a81105242bb bitcoin-0.3.10-win32-setup.exe

SHA1 16645ec5fcdb35bc54bc7195309a1a81105242bb bitcoin-0.3.10-win32-setup.exe

SHA1 4f35ad7711a38fe8c880c6c9beab430824c426d3 bitcoin-0.3.10-win32.zip

SHA1 4f35ad7711a38fe8c880c6c9beab430824c426d3 bitcoin-0.3.10-win32.zip

步骤:

Steps:

1) 关闭客户端。

1) Shut down.

2) 下载 knightmb 的 blk 文件,替换你的 blk0001.dat 和 blkindex.dat 文件。

2) Download knightmb's blk files and replace your blk0001.dat and blkindex.dat files.

3) 升级到 0.3.10。

3) Upgrade to 0.3.10.

4) 启动时应该少于 74000 个区块,让它重新下载剩下的。

4) It should start out with less than 74000 blocks and redownload the rest.

或者,如果你不想折腾下载 blk 文件,直接这样做:

Or if you don't want to mess with downloading blk files, you can just do this:

1) 关闭客户端。

1) Shut down.

2) 删除(或移走)blk*.dat

2) Delete (or move) blk*.dat

3) 升级到 0.3.10。

3) Upgrade to 0.3.10.

4) 它会重新下载全部区块,大概要一个小时。

4) It redownloads all blocks, probably take about an hour.

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:e812aa868817。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

overflow bug SERIOUS

Bitcointalk · 原始链接 ↗ 记录编号 SN-2422

阅读字号

选择适合你的字号,之后阅读会继续使用。