~/talk

Hidden in Plain Sight: Corner Case Defects

Talkat Open Source Summit Europe 2024 · 2024-09-16..09-18· [testing]
links:none on file
slides:none on file

Shows four real defects with concrete causes and fixes: a power‑of‑two ceil/floor pair that loops forever for inputs > 2^62 and returns wrong values for 0 until changed to reject zero and implement floor independently; a strtoul misuse where signed minus and 64‑bit unsigned hosts accept huge negative literals into 32‑bit fields; signed char bit‑shifts that produce wrong hex escapes; execv/argv assumptions and a sync IPC reader that deadlocks when stderr fills the pipe. Recommends MISRA, extreme testing and seL4 for formal correctness.

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.