X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsafe-alloc.c;h=510e06b4ba544ca7e28034d187da75e0770dcfce;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=90c81be2aa0cd5e1123284e42348605b9aab971a;hpb=bdec3e410196c242757abb0a130dd929e6375615;p=gnulib.git diff --git a/lib/safe-alloc.c b/lib/safe-alloc.c index 90c81be2a..510e06b4b 100644 --- a/lib/safe-alloc.c +++ b/lib/safe-alloc.c @@ -1,23 +1,19 @@ -/* - * safe-alloc.c: safer memory allocation - * - * Copyright (C) 2009 Free Software Foundation, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ +/* safe-alloc.c: safer memory allocation + + Copyright (C) 2009-2013 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 3 of the License, or any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ /* Written by Daniel Berrange , 2008 */ @@ -33,7 +29,7 @@ /* Return 1 if an array of N objects, each of size S, cannot exist due to size arithmetic overflow. S must be positive and N must be - nonnegative. This is a macro, not an inline function, so that it + nonnegative. This is a macro, not a function, so that it works correctly even when SIZE_MAX < N. By gnulib convention, SIZE_MAX represents overflow in size