Menu

#3 Corruption in assembling long lines

closed
None
5
2002-08-07
2002-07-27
tim lindner
No

When assembling level2v3/cmds/wcreate.asm os9asm would
report 95 errors at the end of assembly. But the errors would not
be identified during the assembly.

The object file would be correctly created.

Somehow Err_count would be set to 95 during the second pass.

When I spilt line 40 (of wcreate.asm) into two smaller lines the
problem dissapeared.

I have no further research.

Discussion

  • Boisy Pitre

    Boisy Pitre - 2002-07-27
    • assigned_to: nobody --> tlindner
     
  • Boisy Pitre

    Boisy Pitre - 2002-07-27

    Logged In: YES
    user_id=42881

    I cannot duplicate this problem under Linux. Can you
    examine it more closely and see what is going on?

     
  • tim lindner

    tim lindner - 2002-07-27

    Logged In: YES
    user_id=212527

    OK, I traced the problem to line 128 in util.c.

    E_bytes is an array of size E_LIMIT + 60. During the assembly of line 40
    of wcreate.adm it overflows.

    Does it overflow on other platforms? I suggest increasing the buffer. I
    also suggest testing for overflow.

     
  • tim lindner

    tim lindner - 2002-08-07
    • status: open --> closed
     
  • tim lindner

    tim lindner - 2002-08-07

    Logged In: YES
    user_id=212527

    Fixed.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB