Menu

#5 Bug in js_string

closed
nobody
None
5
2009-11-06
2009-04-01
Anonymous
No

If source line contains '\' char (e.g. path: "c:\\Directory", parser will truncate it: "c:\Director" will in result.

Bug is in stop-loop condition (line 1827 of v.1.06 source):
until j >= length(s);
must be
until j > length(s);

Best regards,
Andrew G. Khodotov.

Discussion

  • Nobody/Anonymous

    I met the same problem!
    I think the fix which Andrew provided is right!

     
  • Leonid Koninin

    Leonid Koninin - 2009-11-06
    • status: open --> closed
     
  • Leonid Koninin

    Leonid Koninin - 2009-11-06

    fixed, thanks

     
  • Leonid Koninin

    Leonid Koninin - 2009-11-06

    about the removing \\ - it isn't a bug, it is correct.

     
  • Leonid Koninin

    Leonid Koninin - 2009-11-06
    • status: closed --> open
     
  • Leonid Koninin

    Leonid Koninin - 2009-11-06
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB