if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->keylen > buflen || wire->calldatalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen < length) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen + wire->calldatalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->keylen + wire->calldatalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->datalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->msglen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->msglen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->msglen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->keylen > buflen || wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen < length) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->keylen + wire->datalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->keylen > buflen || wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen < length) {
+ return EMSGSIZE;
+ }
+ if (length + wire->keylen + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->keylen + wire->datalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->datalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->datalen > buflen || wire->errorlen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen < length) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen + wire->errorlen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->datalen + wire->errorlen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->datalen) {
return EMSGSIZE;
}
if (buflen < length) {
return EMSGSIZE;
}
+ if (wire->datalen > buflen) {
+ return EMSGSIZE;
+ }
+ if (length + wire->datalen < length) {
+ return EMSGSIZE;
+ }
if (buflen < length + wire->datalen) {
return EMSGSIZE;
}