etoyoda / tarwriter

a pure-ruby class to create/append-to tar archive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file longer than 3.7 megabytes is sometimes truncated and nul-filled

etoyoda opened this issue · comments

  • The issue is found when XML files downloaded by feedfollow/feedstore is corrupt, i.e. unparsable as XML.
  • Every corrupt files are truncated at the octet o16107000 = 3706368.
  • Not all files longer than that size are broken.

応急処置をしました。 04fc78d とりあえず1週間ほど様子をみて、3メガバイト長書き出しを10000ケースほどこなして再発しなければクローズするつもりです。

the issue becomes less frequent, but now i observed first case after the patch.
https://qiita.com/e_toyoda/items/179be3230694be3a4c6d#2019-10-01-e1fc1336-0530-37c4-adc1-7ba410845920

the second quick and dirty patch depends upon the guess that String#[] returns nil in the case.
32bf98e