Menu

#74 Eatin' bytes on downloads

V. 2.4-pre1
closed-fixed
Core (59)
9
2002-12-14
2002-12-07
No

Files or resumed segments that start with an ascii
digit confuses XNap, so it eats some bytes, thinking
that it is the file size insteat the data stream. As it
knows the file size from the request, it should know
how much bytes it receives are actually *not* part of
the data stream, by converting the well-known file size
to an ascii string, and comparing each byte it
receives. Say, if the size is 123456 bytes, it should
expect 6 bytes and start reading the data stream
immediately after them (and of course, it should
compare the strings to see if it's everything ok).

I have posted more details here:
http://www.animefantasia.com/modules.php?
op=modload&name=XForum&file=viewthread&tid=790

Discussion

  • Daniel K. O.

    Daniel K. O. - 2002-12-07
    • priority: 5 --> 7
     
  • Steffen Pingel

    Steffen Pingel - 2002-12-07

    Logged In: YES
    user_id=165597

    Thanks for the report. I replaced the buggy code. Fixed in
    2.4-pre2.

     
  • Steffen Pingel

    Steffen Pingel - 2002-12-07
    • assigned_to: nobody --> squig
    • priority: 7 --> 9
    • status: open --> pending-accepted
     
  • Steffen Pingel

    Steffen Pingel - 2002-12-07
    • status: pending-accepted --> open-accepted
     
  • Daniel K. O.

    Daniel K. O. - 2002-12-14
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.