[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] correct size calculation for ffi return types
From: |
lemonboy |
Subject: |
[Chicken-hackers] [PATCH] correct size calculation for ffi return types |
Date: |
Mon, 31 Jul 2017 18:31:28 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Hello hackers,
I managed to stumble across this nasty compiler bug while trying to figure out
why some code was segfaulting in a FFI stub. It turns out that I forgot to place
a define-foreign-type form before the lines the type was referenced in and the
compiler happily assumed it had size 0 and skipped the generation of the scratch
space buffer.
Here's a simple patch, I'm not too fond of the catch-all case but it shouldn't
be a problem (the `make check` shows no regression).
Cheers,
LemonBoy
0001-Do-not-underallocate-the-scratch-space-for-ffi-retur.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-hackers] [PATCH] correct size calculation for ffi return types,
lemonboy <=