Skip to content

Commit

Permalink
fix: add check for empty bytes being written by file write channel fi…
Browse files Browse the repository at this point in the history
…leWrChannel (#696)

Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Apr 13, 2021
1 parent 2317a86 commit d606972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracee-ebpf/tracee/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,9 @@ func (t *Tracee) processFileWrites() {
for {
select {
case dataRaw := <-t.fileWrChannel:
if len(dataRaw) == 0 {
continue
}
dataBuff := bytes.NewBuffer(dataRaw)
var meta chunkMeta
appendFile := false
Expand Down

0 comments on commit d606972

Please sign in to comment.