Talk:Word count (Assembly Intel x86 Linux)

From LiteratePrograms
Jump to: navigation, search

[edit] Generating read error

Does anyone know how to generate a read error on Linux? Because the handling code for that case was where one of the two bugs I fixed during today's literating was (the other one was a silent bug where I used cx instead of ecx, but due to the buffer size, the number would never exceed the 16 bits of cx anyway, thus no amount of testing could have detected that one). The bug evaded my testing because I didn't know how to test for it.

hijacker
hijacker
hijacker
hijacker