about summary refs log tree commit diff stats
path: root/subx/apps/pack
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-03-26 20:41:22 -0700
committerKartik Agaram <vc@akkartik.com>2019-03-26 22:20:15 -0700
commit104bd6555dcca42afb96e97585d007231a27daf3 (patch)
tree40c748b907cf0e0a1e21d70fb407864cf7c62e22 /subx/apps/pack
parent800fb25a8ff5c3eea783865915e03cd1d4b39d4c (diff)
downloadmu-104bd6555dcca42afb96e97585d007231a27daf3.tar.gz
5023
Several bugs found after performing multiple loops through convert-data.

This has been a general pattern: given how unsafe the x86 'language' is,
the regular amount of testing with a single input doesn't really give sufficient
confidence. Ever-present is the possibility that I forgot to pop something
from the stack, either a spilled register or a local. Calling functions
multiple times seems to help detect such bugs. So far I've been doing this
extra level of testing implicitly when I build the next higher abstraction.
But with `convert-data` the buck stopped, and much painful debugging ensued.

One thing that would help is if `write` on streams didn't remain silent
on overflow. But we actually need that sometimes, when streams are used
as buffers.
Diffstat (limited to 'subx/apps/pack')
-rwxr-xr-xsubx/apps/packbin23263 -> 24173 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/subx/apps/pack b/subx/apps/pack
index ce56559f..77f61b12 100755
--- a/subx/apps/pack
+++ b/subx/apps/pack
Binary files differ