Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 26 Oct 2011 01:20:36 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: clang warning

Clang emits this warning. Is it a false alarm? This code is from 2002.

single.c:330:8: warning: array index of '1' indexes past the end of an
array (that contains 1 elements) [-Warray-bounds]
                        if (first->data[1]) {
                            ^           ~
In file included from single.c:15:
In file included from ./loader.h:16:
./list.h:19:7: note: array 'data' declared here
        char data[1];
             ^
1 warning generated.

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ