2002-10-17 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (verifyable_object_isvalid): Test for static object first.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | 2002-10-17  Thomas Pfaff  <tpfaff@gmx.net> | ||||||
|  |   | ||||||
|  | 	* thread.cc (verifyable_object_isvalid): Test for static object first. | ||||||
|  |  | ||||||
| 2002-10-16  Christopher Faylor  <cgf@redhat.com> | 2002-10-16  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properly | 	* fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properly | ||||||
|   | |||||||
| @@ -1356,12 +1356,12 @@ verifyable_object_state | |||||||
| verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr) | verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr) | ||||||
| { | { | ||||||
|   verifyable_object **object = (verifyable_object **)objectptr; |   verifyable_object **object = (verifyable_object **)objectptr; | ||||||
|  |   if (static_ptr && *object == static_ptr) | ||||||
|  |     return VALID_STATIC_OBJECT; | ||||||
|   if (check_valid_pointer (object)) |   if (check_valid_pointer (object)) | ||||||
|     return INVALID_OBJECT; |     return INVALID_OBJECT; | ||||||
|   if (!*object) |   if (!*object) | ||||||
|     return INVALID_OBJECT; |     return INVALID_OBJECT; | ||||||
|   if (static_ptr && *object == static_ptr) |  | ||||||
|     return VALID_STATIC_OBJECT; |  | ||||||
|   if (check_valid_pointer (*object)) |   if (check_valid_pointer (*object)) | ||||||
|     return INVALID_OBJECT; |     return INVALID_OBJECT; | ||||||
|   if ((*object)->magic != magic) |   if ((*object)->magic != magic) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user