[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: Small fix in gnumach
From: |
gfleury |
Subject: |
Re: PATCH: Small fix in gnumach |
Date: |
Sat, 14 Mar 2020 08:11:33 +0000 |
hello,
14 mars 2020 00:46 "Samuel Thibault" <samuel.thibault@gnu.org> a écrit:
> Hello,
>
> gfleury@disroot.org, le ven. 13 mars 2020 20:55:29 +0000, a ecrit:
>
>> if the previous call vm_object_enter return VM_OBJECT_NULL in new_object
>> the new_object->shadow dereference of NULL will cause a bug.
>>
>> attached file fix this. Fix the indentation if it is not correct.
>
> In the case of failure, you also need to release the new_memory_object
> allocated above. I guess that the src_object->ref_count taken above
> needs to be released as well.
>
see update patch does make sense.
> Samuel
0001-fix-possible-dereference-of-NULL.patch
Description: Binary data