Article View: comp.sys.transputer
Article #2638Bug in extractor/loader utility of TDS
From: Peter A. Krauss
Date: Mon, 17 Apr 1989 12:12
Date: Mon, 17 Apr 1989 12:12
45 lines
1805 bytes
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) |
+----------------------------------------------------------+
Technical Details
Message-ID:
<505@tumuc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!unido!ztivax!tumuc!pakShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!unido!ztivax!tumuc!pak From: pak@tumuc.UUCP (Peter A. Krauss) Newsgroups: comp.sys.transputer Subject: Bug in extractor/loader utility of TDS Message-ID: <505@tumuc.UUCP> Date: 17 Apr 89 12:12:30 GMT Organization: Technical University of Munich, W-Germany Lines: 45