Re: 3.6% of heads up: Please correct your #includes or optflags use

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

 



Patrice Dumas <pertusus@xxxxxxx> writes:

>> Yes fixing them is important, missing prototypes can lead to all sort
>> of errors and often lead to 64 bit issues (== crashes).
>
> And more specifically? What kid of 64bit issues and for which
> function?

Especially functions with >=7 arguments:

void foo(int a1, int a2, int a3, int a4, int a5, int a6, int *e)
{
        if (e)
           *e = a1;
}

int main()
{
        foo(1,2,3,4,5,6, 0);
}


This will segfault when foo() and main() are in two different compilation
units.



Enrico

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux