[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in libobjc2 gc_none free

From: Justin Hibbits
Subject: Bug in libobjc2 gc_none free
Date: Thu, 28 Jul 2011 23:17:52 -0400

The gc_none.c free() is simply libc's free(), but gc->allocate_class() returns ((id)ptr + 1). This mismatch causes segfaults on FreeBSD. Attached is a patch that fixes this, but only for this one scenario. A better patch is needed for real.

- Justin

Attachment: fix_free_nogc.diff
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]