Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion internal/pkg/daemon/bpfrecorder/bpf/bpf_d_path_tetragon.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ prepend_name(char *buf, char **bufptr, int *buflen, const char *name, u32 namele
FUNC_INLINE int
prepend(char **buffer, int *buflen, const char *str, int namelen)
{
*buflen -= namelen;
if (namelen <= 0 || namelen > MAX_BUF_LEN)
return -ENAMETOOLONG;
*buflen -= namelen;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is not properly formatted.

if (*buflen < 0) // will never happen - check function comment
return -ENAMETOOLONG;
*buffer -= namelen;
Expand Down
Binary file modified internal/pkg/daemon/bpfrecorder/bpf/recorder.bpf.o.amd64
Binary file not shown.
Binary file modified internal/pkg/daemon/bpfrecorder/bpf/recorder.bpf.o.arm64
Binary file not shown.
Binary file modified internal/pkg/daemon/enricher/auditsource/bpf/enricher.bpf.o.amd64
Binary file not shown.
Binary file modified internal/pkg/daemon/enricher/auditsource/bpf/enricher.bpf.o.arm64
Binary file not shown.
Loading