ALT Linux Bugzilla
– Attachment 1706 Details for
Bug 10414
Проблема с символом пробела
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Исправление ошибки с пробелами
freetype-2.2.1-cvs-space-fix.patch (text/plain), 834 bytes, created by
Vyacheslav Dikonov
on 2006-12-13 17:32:05 MSK
(
hide
)
Description:
Исправление ошибки с пробелами
Filename:
MIME Type:
Creator:
Vyacheslav Dikonov
Created:
2006-12-13 17:32:05 MSK
Size:
834 bytes
patch
obsolete
>diff -Nru freetype-2.2.1-old/src/base/ftutil.c freetype-2.2.1-new/src/base/ftutil.c >--- freetype-2.2.1-old/src/base/ftutil.c 2006-05-03 01:47:14 +0400 >+++ freetype-2.2.1-new/src/base/ftutil.c 2006-12-13 17:09:30 +0300 >@@ -120,12 +120,16 @@ > FT_Error error = FT_Err_Ok; > > >- if ( cur_count < 0 || new_count < 0 || item_size <= 0 ) >+ /* note that we now accept item_size == 0 as a valid >+ * parameter. this in order to cover very weird cases >+ * where a ALLOC_MULT macro would be called >+ */ >+ if ( cur_count < 0 || new_count < 0 || item_size < 0 ) > { > /* may help catch/prevent nasty security issues */ > error = FT_Err_Invalid_Argument; > } >- else if ( new_count == 0 ) >+ else if ( new_count == 0 || item_size == 0 ) > { > ft_mem_free( memory, block ); > block = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10414
: 1706