Skip to content

Commit

Permalink
Fix integer underrun in InterpretSockaddrField() (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
taglines committed Jan 26, 2021
1 parent 3d54442 commit 5d8826f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Interpret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ bool InterpretSockaddrField(std::string& out, const EventRecord& record, const E
out.append(addr->sun_path, strnlen(addr->sun_path, std::min(path_size, sizeof(addr->sun_path))));
} else {
out.push_back('@');
out.append(&addr->sun_path[1], path_size-1);
if (path_size > 1) {
out.append(&addr->sun_path[1], path_size - 1);
}
}
out.append(" }");
break;
Expand Down
4 changes: 2 additions & 2 deletions auoms.version
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

AUOMS_BUILDVERSION_MAJOR=2
AUOMS_BUILDVERSION_MINOR=3
AUOMS_BUILDVERSION_PATCH=3
AUOMS_BUILDVERSION_PATCH=4
AUOMS_BUILDVERSION_BUILDNR=0
AUOMS_BUILDVERSION_DATE=20201113
AUOMS_BUILDVERSION_DATE=20210125
AUOMS_BUILDVERSION_STATUS=Developer_Build

0 comments on commit 5d8826f

Please sign in to comment.