[Bug 483301] Review Request: muse - Midi/Audio Music Sequencer

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

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=483301





--- Comment #8 from Ralf Corsepius <rc040203@xxxxxxxxxx>  2009-02-08 15:23:44 EDT ---
(In reply to comment #7)
Stop trolling.



#include <stdio.h>

int main()
{
  size_t x = 0x100000000;

  printf( "%d\n", x);
  printf( "%zd\n", x);
}

(In reply to comment #7)
> > memory.h:73: warning: format '%d' expects type 'int', but argument 2 has type
> > 'size_t'
> > 
> > In many cases, this kind of warnings are the origin of mal-functions.
> 
> I use the software. I didn't encounter any problems (yet). But I'll see
> what we can do.

Let me demonstrate the seriousness of this bug:

Compile this code on x86_64:

#include <stdio.h>
int main()
{
  size_t x = 0x100000000;

  printf( "%d\n", x);
  printf( "%zd\n", x);
}

# gcc -Wall -O2 -o foo foo.c
foo.c: In function ‘main’:
foo.c:7: warning: format ‘%d’ expects type ‘int’, but argument 2 has type

Then run it:
./foo
0
4294967296

=> Mal-function

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Fedora-package-review mailing list
Fedora-package-review@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-package-review

[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]