Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 26 21:50
    rlebeau labeled #329
  • Nov 26 21:50
    rlebeau labeled #329
  • Nov 26 21:50
    rlebeau opened #329
  • Nov 25 08:26
    xjikka commented #299
  • Nov 25 04:25
    grahamegrieve commented #299
  • Nov 23 17:09
    rlebeau commented #328
  • Nov 23 17:06
    rlebeau commented #328
  • Nov 22 23:45
    vincentparrett opened #328
  • Nov 17 21:33

    rlebeau on master

    Updating TIdCookie.ParseServerC… (compare)

  • Nov 11 16:34
    rlebeau commented #299
  • Nov 11 16:33
    rlebeau commented #299
  • Nov 11 16:25
    rlebeau commented #299
  • Nov 10 23:49
    grahamegrieve commented #299
  • Nov 10 23:26
    rlebeau commented #299
  • Nov 10 23:26
    rlebeau commented #299
  • Nov 10 07:48
    ralfjunker commented #299
  • Nov 10 06:59
    mezen commented #299
  • Nov 09 21:34
    xjikka commented #299
  • Nov 09 19:00
    rlebeau commented #299
  • Nov 09 17:13
    xjikka commented #299
phy0292
@phy0292
谁能看懂中文?
phy0292
@phy0292
我有一个重要的BUG要报告,在indy10和之前的版本一直存在。在IdZLib.pas中的CompressStream里,如果我们以大于1比如9的压缩level来调用IdCompressorZLibEx1->DeflateStream(in_ms,out_ms,9);那么CompressStream函数发生buffer error的概率30%,你可以试试以这样的方式依次来压缩某个文件中每个文件,压缩结果可以舍弃不要,你会发现在压缩某些文件或内容时报buffer error的错误。而以默认的IdCompressorZLibEx1->DeflateStream(in_ms,out_ms);来调用这个函数不会出错,但是实际上他是不压缩数据,结果基本上都是变大。如果把 if strm.avail_in = 0 then break; 这一行改成if (strm.avail_in = 0) and (strm.avail_out > 0) then break; 那么BUG消除。。。
Matthijs ter Woord
@mterwoord
@phy0292 You may have better luck trying in english...
davidpn
@davidpn
He says there's a bug in IdZLib.pas
Matthijs ter Woord
@mterwoord
what kind of bug?
davidpn
@davidpn
He didn't say exactly where, but going by the example it looks like it's in IndyCompressStream, going by what he says the fix is
hard to work out exactly what the bug is
Dodgy Google Translate translation:
I have an important BUG to report, and the previous version in indy10 persist. In IdZLib.pas in CompressStream, if we is greater than 1, such as compression level 9 to call IdCompressorZLibEx1-> DeflateStream (in_ms, out_ms, 9); then CompressStream function generating buffer error probability of 30%, so you can try to way turn to compress each file in a file compression results do not give up, you will find some files in the compressed contents Times buffer error or mistake. The default of IdCompressorZLibEx1-> DeflateStream (in_ms, out_ms); call this function without error, but in fact he is not compressed data, the results are basically large. If if strm.avail_in = 0 then break; into this line if (strm.avail_in = 0) and (strm.avail_out> 0) then break; then eliminate BUG
His first question was whether anyone understands Chinese ;-)
Matthijs ter Woord
@mterwoord
:)
davidpn
@davidpn
Oops.. my bad.. there is a line of code like that in DoCompressStreamEx
Matthijs ter Woord
@mterwoord
@davidpn I'd say we wait for him to translate to english?
davidpn
@davidpn
as well
@phy0292 你可以提供一个更好的例子吗?
I asked for a better example
Matthijs ter Woord
@mterwoord
you know english?
shoot, chinese?
davidpn
@davidpn
lol
no.. I'm relying on Google Translate
hopefully Chinese (simplified) works ;-)
Matthijs ter Woord
@mterwoord
:)
davidpn
@davidpn
I think I need to learn Portugeuse.. most of the hits on my website are from Brazil.. must be a popular Delphi place :-)
phy0292
@phy0292
稍后我提供一个案例放在git上,你们测试后就知道有严重的BUG存在。
davidpn
@davidpn
谢谢 :-)
@davidpn 你会中文? :grinning:
davidpn
@davidpn
不,我使用谷歌翻译 :-)
phy0292
@phy0292
测试程序是个BCB代码,我没有用delphi
davidpn
@davidpn
是的我知道。rlebeau 可能看后来. 我使用Delphi
I hope that worked out alright :-)
@rlebeau his link is to an example of what he thinks is a bug
in BCB
phy0292
@phy0292
Please select "comp.dat" or "ExtWizrd.dll" file for testing
Ludwig Behm
@lbehm
"hey just run these 2 binaries!" that looks kinda like phishing ^_^ must be the paranoia again x)
davidpn
@davidpn
;-)
phy0292
@phy0292
@davidpn 看到BUG了吗?
davidpn
@davidpn
rlebeau以后可能检查的bug
Remy Lebeau
@rlebeau
IdZLib.IndyCompressStream() (which TIdCompressorZLibEx.DeflateStream() uses internally) is known to have issues, but I have not gotten around to fixing it yet.
phy0292
@phy0292
.
if strm.avail_in = 0 then break;
replace
if (strm.avail_in = 0) and (strm.avail_out > 0) then break;
@rlebeau Replaced by the above
@rlebeau BUG eliminated, but not necessarily elsewhere BUG
google的翻译不准确。。。 :grinning:
phy0292
@phy0292
It is known to have problems, but disclosed function, make me an error code, so I'm so confused
@davidpn 我上面说的能看明白吗?
Remy Lebeau
@rlebeau
As I said, I'm already aware of the problem, and no, the proposed fix is not enough, there is another known issue further down in the same function. Fixing the function is on my TODO list, I just haven't gotten around to it yet
davidpn
@davidpn
@phy0292: 他说:“我已经意识到了这个问题,并没有,建议修复是不够的,还有另外一个已知问题在同一个函数进一步向下修复的功能是我的待办事项清单上,只是还没有得到周围它尚未“
davidpn
@davidpn
我理解这个问题。它需要由他来解决