jayacotton / inettools-z80

Inet tools for z80-rc2014 tcp/ip stack code.
MIT License
17 stars 2 forks source link

HTLIST as state machine issues. #22

Closed jayacotton closed 2 years ago

jayacotton commented 2 years ago

The state machine that decodes the HTML data stream is making mistakes at buffer crossover points. Looks like an off by one bug.

Here is an example of the bug

PULL.SUB RCZ80KIO.COM RCZ80KIO.ROM RCZ80_kio.upd
RCZ80_mt.com RCZ180.COM RCZ180.ROM RCZ18RCZ80RDATE.COM
...............................................................................................^^^^^^^^^^^^^^^^^
RRTCPM.OBJ SCROLLHELLO.COSCROLLINP.COM SIGNAL.H
..............................................^^^^^^^^^^^^^^^^^^^^^^^^^
SNAP.COM SNIOS.SPR SOURCES.LBR SPINDLE.COM

Here is the input (sorta) data

  | RCZ180.ROM | 2021-04-29 13:49 | 512K |     | RCZ180_ext.rom | 2021-02-04 20:48 | 512K |     | RDATE.COM | 2021-05-17 12:11 | 640

jayacotton commented 2 years ago

I have it mostly fixed now. There is one more issue. Sometimes the name column is missing the last item. The name list is complete, but the formatting is shaky.

The root issue with for this bug is the network input data buffer was too small.