~ubuntu-branches/ubuntu/wily/man-db/wily-proposed

« back to all changes in this revision

Viewing changes to gnulib/lib/xalloc-oversized.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-06-24 11:34:02 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20130624113402-6xdn53l2p9qu8yus
Tags: 2.6.4-1
* New upstream release:
  - Document default section list in manual pages (closes: #611007).
  - Quieten most warnings from compiling Gnulib (closes: #668429).
  - The MANLESS environment variable is now treated as if it were a
    default value for the -r option to man: occurrences of the text
    "$MAN_PN" are expanded, and explicitly using the -r option overrides
    the default (closes: #690831).
* Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
* Remove maintainer script support for direct upgrades from pre-etch
  (three releases before current stable).
* Breaks/Replaces manpages-zh (<< 1.5.2-1.1); man-db now ships zh_CN
  translations formerly included there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* xalloc-oversized.h -- memory allocation size checking
2
2
 
3
 
   Copyright (C) 1990-2000, 2003-2004, 2006-2012 Free Software Foundation, Inc.
 
3
   Copyright (C) 1990-2000, 2003-2004, 2006-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
22
22
 
23
23
/* Return 1 if an array of N objects, each of size S, cannot exist due
24
24
   to size arithmetic overflow.  S must be positive and N must be
25
 
   nonnegative.  This is a macro, not an inline function, so that it
 
25
   nonnegative.  This is a macro, not a function, so that it
26
26
   works correctly even when SIZE_MAX < N.
27
27
 
28
28
   By gnulib convention, SIZE_MAX represents overflow in size