Skip to content

Commit

Permalink
Revert buffer size increase.
Browse files Browse the repository at this point in the history
There are some internals to the usage of the buffer that cause any change to it's size in `MsgPack.h` to result in a segfault. More research is needed to figure out where exactly the buffer gets used and whether its usage can be replaced by `mpack_writer_init_growable` for mostly-automatic memory management.
  • Loading branch information
faultyserver committed Mar 17, 2017
1 parent c89b1e9 commit 3ee83a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/mpackCPP/MsgPack.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class MsgPack {
private:
mpack_writer_t writer;
char data[4096];
char data[1024];

void _getJson(std::stringstream &s, mpack_reader_t &reader) const;

Expand Down

0 comments on commit 3ee83a2

Please sign in to comment.