about summary refs log tree commit diff stats
path: root/html/092socket.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-04 14:20:16 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-04 14:26:57 -0700
commitc4c30c7dc92ad8f5c00bf8facaa089b4ed9cab53 (patch)
tree8814bb4e7dc13e9a43d7cdba528ceac1317b6a47 /html/092socket.mu.html
parentd2410e14c6af85f917f79de6f19fb6e60d37d74f (diff)
downloadmu-c4c30c7dc92ad8f5c00bf8facaa089b4ed9cab53.tar.gz
5140 - fix an out-of-bounds bug
We were writing 32-bit words when we meant to write 8-bit bytes. Most of
the time this doesn't matter because:
  * x86 is little endian,
  * a write to (x, x+1, x+2, x+3) is over-written by
    the next to   (x+1, x+2, x+3, x+4), and
  * the 3 higher/later bytes are always 0 so no information is lost

The only place this matters is if we're close to the end of the stream.
Diffstat (limited to 'html/092socket.mu.html')
0 files changed, 0 insertions, 0 deletions