diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-03 20:08:46 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-04 07:52:47 +0900 |
commit | df164cd856a34d8c1462793a40e56d387389b82f (patch) | |
tree | 91e69f92a5ad64b70495bef12fa6449eb32aef3b /lib/events/directchatevent.cpp | |
parent | eaca25fd5115ab00a29b7d47dfc6e16cbfd5e552 (diff) | |
download | libquotient-df164cd856a34d8c1462793a40e56d387389b82f.tar.gz libquotient-df164cd856a34d8c1462793a40e56d387389b82f.zip |
Connection: Trim raw data in emitted signals
If the payload is too large, an attempt to allocate a QString out of
QByteArray may end with qBadAlloc(). So by default the data emitted in
case of error are trimmed to 64KiB, and this can be overridden to a
different value (or switched off entirely with <n>=0) by adding -
DTRIM_RAW_DATA=<n> to CPP_FLAGS.
Diffstat (limited to 'lib/events/directchatevent.cpp')
0 files changed, 0 insertions, 0 deletions