[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Patch: fix uninitialized variable
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Patch: fix uninitialized variable |
Date: |
Tue, 19 Aug 2008 06:52:41 +0200 (CEST) |
> Considering the problem you reported, now I think making
> FT_Stream_New() initialize *astream always can be more generic
> solution.
>
> FT_Stream_New() is NOT public function, but it is most fundamental
> function to create a stream in FreeType2. I suppose no FT2 users
> write their function creating FT_Stream without FT_Stream_New(), so,
> if FT_Stream_New() initializes *astream always, it will prevent the
> bug by freeing uninitialized stream in their functions.
Preventing bugs at no cost is always a good idea :-) Please apply.
Werner
Re: [ft-devel] Patch: fix uninitialized variable, George Williams, 2008/08/20