Menu

#2 yenc posts fail CRC but are otherwise fine

open
None
5
2003-03-16
2003-03-12
Mark Frazer
No

When posting with yenc encoding, the downloaded files
generate the following messages by pan when being decoded:

** WARNING **: Checksum for
`/export/home/mjfrazer/News/Pan/wtc-photo.r05' failed -
file may be corrupt

However the file is fine. Is ypost not computing the
CRC correctly? I have never seen this message from a
post from another posting agent.

thanks

Discussion

  • Jonathan Lupa

    Jonathan Lupa - 2003-03-16
    • assigned_to: nobody --> jridley
     
  • Jonathan Lupa

    Jonathan Lupa - 2003-03-16

    Logged In: YES
    user_id=364322

    John, you are the ypost man... any thoughts? Also, check
    out the patch that is on the site.

     
  • Alexandre Devilliers

    This bug is caused by g++ compilation under 64bits systems. The long used to store the CRC32 is expected by the author to be 32bits, which it isn't at least under AMD64 (long is 64bits for g++) and you get this kind of errors:
    CRC mismatch 45946B75 != FFFFFFFF45946B75
    I changed the long to an int in yenc.h.
    This fixed the problem.

    30c30
    < long m_crc_val, m_wholeFileCrc;
    ---
    > int m_crc_val, m_wholeFileCrc;

     

Log in to post a comment.

MongoDB Logo MongoDB