diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-03-04 14:25:21 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-03-04 14:29:12 +0100 |
commit | 6dc8bc05a95324de512ef7999b47507e712ccb76 (patch) | |
tree | db2ba277d67fff1b7a2968df853bae5e01ae7f3c /lib/csapi/to_device.cpp | |
parent | b5b2d95ce2c8cf164177a86d6293809ff049ca0a (diff) | |
download | libquotient-6dc8bc05a95324de512ef7999b47507e712ccb76.tar.gz libquotient-6dc8bc05a95324de512ef7999b47507e712ccb76.zip |
Tighten up against malformed user ids in events
A few months ago 3c85f049 introduced validation of user ids but the rest
of the library code wasn't updated to the fact that Connection::user()
may quite legitimately (if not routinely) return nullptr, leading to
crashes particularaly when malformed ids come from the wire. This commit
adds necessary checks before using the value returned from user().
Closes #456.
Diffstat (limited to 'lib/csapi/to_device.cpp')
0 files changed, 0 insertions, 0 deletions