]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Check for over/underflow while allocating PTS ids
authorBen Kaduk <kaduk@mit.edu>
Wed, 17 Jul 2013 00:39:56 +0000 (20:39 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 13 Sep 2013 18:24:17 +0000 (11:24 -0700)
commitc358d7cbbdf24de7d62d9ae3f514201a31bed2f9
tree1b1242d14706ffe47722834e3282a8439743e78b
parent7242e25ae28da95b11b98e1353333b0ca70dc6d5
Check for over/underflow while allocating PTS ids

The behavior of signed integer over/underflow is implementation-defined,
but even if the compiler is nice and just wraps around, we could get
ourselves into trouble later on.

Reviewed-on: http://gerrit.openafs.org/10091
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 6c7c185ba3ec6fbdda0651d18868e66edd655809)

Change-Id: I1feb1879cce064760ae061538215b22b6fd55933
Reviewed-on: http://gerrit.openafs.org/10124
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/ptserver/utils.c