tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Small patch


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] Small patch
Date: Thu, 31 Jan 2013 12:33:35 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Le jeudi 31 janvier 2013 02:13:30, Domingo Alvarez Duarte a écrit :
> Also on this function:
> 
> CID 968150 (#1 of 1): Unchecked return value (CHECKED_RETURN)6.
> check_return: Calling function "parse_btype(CType *, AttributeDef *)"
> without checking return value (as is done elsewhere 7 out of 8 times).
> 
> 
> /* enum/struct/union declaration. u is either VT_ENUM or VT_STRUCT */
> static void struct_decl(CType *type, int u)
> {
> ...
>             bit_pos = 0;
>             offset = 0;
>             while (tok != '}') {
>                 parse_btype(&btype, &ad); //// no check made here
> ?????????????????
>                 while (1) {
>                     bit_size = -1;
>                     v = 0;
>                     type1 = btype;

Fixed.

Thanks.

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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