Differences From Artifact [3718c4ff22]:
- File
src/OFObject.m
— part of check-in
[6e357d636d]
at
2009-10-19 08:29:45
on branch trunk
— Fix a bug in -[freeMemory:].
This could be an out of bounds write if the last element is free'd,
as i is pointing to the last element then, which does not exist then
anymore, as it was already resized. Now, it is set before resizing.Additionally, if the realloc to make it smaller fails, we just ignore
that now - it will still work, as we set the correct size before
resizing. (user: js, size: 11011) [annotate] [blame] [check-ins using]
To Artifact [4c1f43e6bd]:
- File src/OFObject.m — part of check-in [a3cc34b139] at 2009-11-09 22:45:13 on branch trunk — Rename libobjfw to ObjFW. (user: js, size: 11008) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #include "config.h" #include <stdio.h> |
︙ | ︙ |