🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.transputer
1 messages
1 total messages Started by Peter A. Krauss Mon, 17 Apr 1989 12:12
Bug in extractor/loader utility of TDS
#2638
Author: Peter A. Krauss
Date: Mon, 17 Apr 1989 12:12
45 lines
1805 bytes

Inmos gives us the source of the extractor loader in \tds2\tools\src
of the D700D TDS. The extractor loader performs the same function as
the TDS configurer utilities [EXTRACT] and [LOAD NETWORK].

But there is a bug, which prevents the correct extract function.
I'm talking about the Version 6b (18th February 1988).
Below is the corrected source (partial).

{{{  EXTLOAD.tsr
{{{  procedures
{{{  handle files
{{{  PROC read.code
PROC read.code (CHAN OF ANY from.uf, to.uf, []BYTE code.buffer, INT code.ptr)
  ...
  SEQ
    ...
    WHILE (tag <> fsd.endstream) AND (result = fi.ok) AND ok
      SEQ
        ...
        IF
          {{{  record
          tag = fsd.record
            SEQ
              IF
                (code.ptr + length) < (SIZE code.buffer)
                  SEQ  --                . <<<<<<<<<<<<<<<<<<<<- bug
                    -- [code.buffer FROM 0 FOR length] :=
                    [code.buffer FROM code.ptr FOR length] :=
                      [data.buffer FROM 0 FOR length]
                    code.ptr := code.ptr + length
                TRUE
                  value.error (code.ptr + length, ". Code buffer overflow")
          }}}
          ...
:
}}}
}}}
}}}
}}}

+----------------------------------------------------------+
| Peter A Krauss  (pak@tumuc.e-technik.tu-muenchen.dbp.de) |
+----------------------------------------------------------+
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads