freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FT_Bitmap_Convert: source == target >> boooom?


From: armin
Subject: Re: [ft-devel] FT_Bitmap_Convert: source == target >> boooom?
Date: Thu, 23 Aug 2018 12:12:28 +0200

>> > Only so much you can do to protect against it. You only capture one
>> particular
>> > case.
>>
>>  I wondered if I can feed it the same bitmap twice.
>
> The cost-benefit analysis is in order. Is it worth checking a great number of
> valid uses to capture the invalid one?

Sure, I totally get that and the check was just in addition; my main question 
was if that information should find its way into the docs to clear out any 
issues upfront ... design by contract + such.

> Whether your program crashes or gives an error, you have to fix the bug in
> your program (unless there is a security implication, which changes the cost
> balance).

Sure, totally agreed.




reply via email to

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