-
Bug
-
Resolution: Done
-
Major
-
14.0.0.Final
-
None
Various RESP commands will request a buffer a given size. However, due to some typos these values are not always correct. This can cause reallocations in worst case where the memory region may be only large enough for the given requested size but border another used block.
We should add assertions to verify these are all the correct sizes.
Also we should change to ASCII charset when writing CharSequence as the characters are always guaranteed to be in the 0-127 byte range. Note that user input should still be assumed to be UTF-8 though to be safe.