Per spec, if mouthbreather calls longjmp(buf, 0), return 1 instead
This commit is contained in:
parent
559d029e2c
commit
a029e60cfc
|
@ -248,6 +248,15 @@
|
|||
<envvars />
|
||||
<debugger />
|
||||
<lib_finder disable_auto="1" />
|
||||
<DoxyBlocks>
|
||||
<comment_style block="0" line="0" />
|
||||
<doxyfile_project />
|
||||
<doxyfile_build />
|
||||
<doxyfile_warnings />
|
||||
<doxyfile_output />
|
||||
<doxyfile_dot />
|
||||
<general />
|
||||
</DoxyBlocks>
|
||||
</Extensions>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
||||
|
|
|
@ -34,7 +34,10 @@ setjmp:
|
|||
|
||||
longjmp:
|
||||
movq %rsi, %rax /* Return value */
|
||||
|
||||
test %rax, %rax
|
||||
jnz L0
|
||||
inc %rax /* if 0 was passed, send back 1 instead */
|
||||
L0:
|
||||
movq 8 (%rdi), %rbp
|
||||
|
||||
cli
|
||||
|
|
Loading…
Reference in New Issue