[Openais] PATCH: bug in CheckpointWrite
Fabien THOMAS
fabien.thomas at netasq.com
Fri Aug 18 02:12:39 PDT 2006
while testing my program i've discovered that when you write a 0
sized vector
saCkptCheckpointWrite return a random error code.
any comment on the patch before commit ?
--- ckpt.c (revision 1220)
+++ ckpt.c (working copy)
@@ -1500,10 +1500,12 @@
for (i = 0; i < numberOfElements; i++) {
if (ioVector[i].dataSize == 0) {
*erroneousVectorIndex = i;
+ error = SA_AIS_ERR_INVALID_PARAM;
goto error_put;
}
if (ioVector[i].dataBuffer == NULL) {
*erroneousVectorIndex = i;
+ error = SA_AIS_ERR_INVALID_PARAM;
goto error_put;
}
}
$
More information about the Openais
mailing list