Re: [btrfs-progs] cmds-restore.c:182:20: warning: array subscript is above array bounds [-Warray-bounds]

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

 



On Sun, Nov 09, 2014 at 03:54:56AM +0000, Duncan wrote:
> A bit more context:
> 
> cmds-restore.c: In function 'next_leaf':
> cmds-restore.c:182:20: warning: array subscript is above array bounds
> [-Warray-bounds]
>   slot = path->slots[level] + 1;
>                     ^

Thanks. We've seen that before and were not able to find why the
compiler thinks it could overflow, see the dicussion here:

http://www.mail-archive.com/linux-btrfs%40vger.kernel.org/msg34338.html

I'll probably merge Christian's patch so the warning goes away.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux