~/talk

Hidden in Plain Sight: Corner Case Defects

links:none on file
slides:none on file

Four production bugs: a pair of power-of-two helpers loop forever for inputs > 2^62 and return 1 for input 0 breaking the floor/ceiling contract; a number parser using strtoul accepts huge negative-signed strings and misclassifies them as valid 32-bit values; URL hex encoding uses signed char so a signed char bitshift yields negative index and wrong percent escapes; IPC code deadlocks by reading stdout then stderr sequentially; fixes include independent floor, bounds checks, and concurrent I/O.

AI-written summary · about

  1. 0:00Corner case defects
  2. 1:47Why corner cases are hard
  3. 2:49Power-of-two function bugs
  4. 9:26Number parsing in Linux
  5. 15:26Hex encoding and chars
  6. 20:49Startup crashes with exec
  7. 24:39Deadlock in interprocess communication
  8. 30:46Avoiding corner case defects
  9. 32:55Formal design and correctness
  10. 33:16Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.