Skip to content

Commit

Permalink
Add throw for invalid decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
Denneisk committed Mar 25, 2024
1 parent 2b54403 commit 37b7cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/gmod_wire_expression2/core/string.lua
Original file line number Diff line number Diff line change
Expand Up @@ -514,5 +514,5 @@ end

e2function string decompress(string compressed)
self.prf = self.prf + #compressed * 0.5
return decompress(compressed) or ""
return decompress(compressed) or self:throw("Invalid input for decompression!", "")
end

0 comments on commit 37b7cbf

Please sign in to comment.