file kernel/signal.c, 2 * array subscript out of range

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

 



Hello there,

I just tried to compile Redhat Fedora package
kernel-2.6.12-1.1435_FC5 with the Intel C compiler version 8.1

The compiler said

kernel/signal.c(196): warning #175: subscript out of range

The source code is

       case 4: ready  = signal->sig[3] &~ blocked->sig[3];

Clearly broken code. Array sig has only _NSIG_WORDS elements,
which is set to two on this architecture.

Suggest rework code to use _NSIG_WORDS as the upper limit, not
a fixed constant.

The compiler also said

kernel/signal.c(197): warning #175: subscript out of range

on the next line of source code.


Regards

David Binderman

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux