diff options
author | Thays <thaystg@gmail.com> | 2021-02-04 23:17:40 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2021-02-05 14:30:12 +0300 |
commit | 2466c9b37bb891b8689bea978fdc90962811c843 (patch) | |
tree | 0c94261f37a1a4959913e63b20f1335cc55b247a | |
parent | 57479b0ba4713b872b108bc076c3c31d1fe93c9f (diff) |
Revert "[mono][debugger] Fixing len as unsigned int and comparing < 0 (#20806)"
This reverts commit f658376029e61fbb1978e8f8286f37ffbba2a0cb.
-rw-r--r-- | mono/mini/debugger-protocol.c | 2 | ||||
-rw-r--r-- | mono/mini/debugger-protocol.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mono/mini/debugger-protocol.c b/mono/mini/debugger-protocol.c index 07094990d27..ec066b78e32 100644 --- a/mono/mini/debugger-protocol.c +++ b/mono/mini/debugger-protocol.c @@ -96,7 +96,7 @@ m_dbgprot_decode_string (uint8_t *buf, uint8_t **endbuf, uint8_t *limit) } uint8_t* -m_dbgprot_decode_byte_array (uint8_t *buf, uint8_t **endbuf, uint8_t *limit, int *len) +m_dbgprot_decode_byte_array (uint8_t *buf, uint8_t **endbuf, uint8_t *limit, uint32_t *len) { *len = m_dbgprot_decode_int (buf, &buf, limit); uint8_t* s; diff --git a/mono/mini/debugger-protocol.h b/mono/mini/debugger-protocol.h index 038777aa966..fbf42f54857 100644 --- a/mono/mini/debugger-protocol.h +++ b/mono/mini/debugger-protocol.h @@ -340,7 +340,7 @@ int m_dbgprot_decode_int (uint8_t *buf, uint8_t **endbuf, uint8_t *limit); int64_t m_dbgprot_decode_long (uint8_t *buf, uint8_t **endbuf, uint8_t *limit); int m_dbgprot_decode_id (uint8_t *buf, uint8_t **endbuf, uint8_t *limit); char* m_dbgprot_decode_string (uint8_t *buf, uint8_t **endbuf, uint8_t *limit); -uint8_t* m_dbgprot_decode_byte_array(uint8_t *buf, uint8_t **endbuf, uint8_t *limit, int *len); +uint8_t* m_dbgprot_decode_byte_array(uint8_t* buf, uint8_t** endbuf, uint8_t* limit, uint32_t* len); /* * Functions to encode protocol data |