diff options
| author | Juan Linietsky | 2015-10-21 16:52:43 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-21 16:52:43 -0300 |
| commit | 35959f9c5a314effc9a442931baccec2408b8ece (patch) | |
| tree | 22375896183f8ce7821bba81a20eeac5e124dc1d /core/io/marshalls.cpp | |
| parent | b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d (diff) | |
| download | godot-35959f9c5a314effc9a442931baccec2408b8ece.tar.gz godot-35959f9c5a314effc9a442931baccec2408b8ece.tar.zst godot-35959f9c5a314effc9a442931baccec2408b8ece.zip | |
Diffstat (limited to 'core/io/marshalls.cpp')
| -rw-r--r-- | core/io/marshalls.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp index 1e76e2b4b..62ccd8148 100644 --- a/core/io/marshalls.cpp +++ b/core/io/marshalls.cpp @@ -36,7 +36,10 @@ Error decode_variant(Variant& r_variant,const uint8_t *p_buffer, int p_len,int * const uint8_t * buf=p_buffer; int len=p_len; - ERR_FAIL_COND_V(len<4,ERR_INVALID_DATA); + if (len<4) { + + ERR_FAIL_COND_V(len<4,ERR_INVALID_DATA); + } uint32_t type=decode_uint32(buf); |
