mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Add a little more logging to failure cases.
PiperOrigin-RevId: 427459159 Change-Id: I34b6027cccfc4b3903ef4deeb9c133598b6667d4
This commit is contained in:
parent
7e5a398164
commit
59b942b256
|
@ -555,9 +555,11 @@ bool Comms::Recv(void* data, size_t len) {
|
||||||
// Internal helper method (low level).
|
// Internal helper method (low level).
|
||||||
bool Comms::RecvTL(uint32_t* tag, size_t* length) {
|
bool Comms::RecvTL(uint32_t* tag, size_t* length) {
|
||||||
if (!Recv(reinterpret_cast<uint8_t*>(tag), sizeof(*tag))) {
|
if (!Recv(reinterpret_cast<uint8_t*>(tag), sizeof(*tag))) {
|
||||||
|
SAPI_RAW_VLOG(2, "RecvTL: Can't read tag");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Recv(reinterpret_cast<uint8_t*>(length), sizeof(*length))) {
|
if (!Recv(reinterpret_cast<uint8_t*>(length), sizeof(*length))) {
|
||||||
|
SAPI_RAW_VLOG(2, "RecvTL: Can't read length for tag %u", *tag);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (*length > GetMaxMsgSize()) {
|
if (*length > GetMaxMsgSize()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user