[LTP] [PATCH v2] security/dirtyc0w_shmem: Add new test for CVE-2022-2590

Martin Doucha mdoucha@suse.cz
Fri Nov 25 15:26:17 CET 2022


On 25. 11. 22 15:22, Cyril Hrubis wrote:
>> Manpage says that the last argument of execlp() must be (char*)NULL,
>> including the explicit typecast.
> 
> I wonder if this is actually valid. Do you know in which way is
> different ((char*)0) from ((void*)0) ?

I think the point is that there's no guarantee that NULL will actually 
be defined as (void*)0. It can be defined as a plain integer instead. 
And it *IS* defined as plain integer when the header is #included in C++.

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic



More information about the ltp mailing list