forked-synapse/synapse
Andrew Morgan 4325be1a52 Fix missing null character check on guest_access room state
When updating room_stats_state, we try to check for null bytes slipping
in to the
content for state events. It turns out we had added guest_access as a
field to
room_stats_state without including it in the null byte check.

Lo and behold, a null byte in a m.room.guest_access event then breaks
room_stats_state
updates.

This PR adds the check for guest_access. A further PR will improve this
function so that this hopefully does not happen again in future.
2020-09-22 19:39:29 +01:00
..
_scripts Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
api Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
app Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
appservice Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
config Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
crypto Add a comment re #1691 2020-09-21 12:34:06 +01:00
events Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
federation Synapse 1.20.0rc5 (2020-09-18) 2020-09-18 11:17:58 -04:00
groups Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
handlers Create function to check for long names in devices (#8364) 2020-09-22 11:42:55 +01:00
http Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
logging Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
metrics Use slots in attrs classes where possible (#8296) 2020-09-14 12:50:06 -04:00
module_api Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
push Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
replication Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
res/templates Improve SAML error messages (#8248) 2020-09-14 09:05:36 -04:00
rest Admin API for reported events (#8217) 2020-09-22 18:15:04 +01:00
server_notices Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
spam_checker_api Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
state Use slots in attrs classes where possible (#8296) 2020-09-14 12:50:06 -04:00
static Clean-up the fallback login code. (#7657) 2020-06-10 09:50:39 -04:00
storage Fix missing null character check on guest_access room state 2020-09-22 19:39:29 +01:00
streams Clean up types for PaginationConfig (#8250) 2020-09-08 15:00:17 +01:00
util Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
__init__.py 1.20.0 2020-09-22 15:18:31 +01:00
event_auth.py Convert events worker database to async/await. (#8071) 2020-08-18 16:20:49 -04:00
notifier.py Use slots in attrs classes where possible (#8296) 2020-09-14 12:50:06 -04:00
python_dependencies.py Move lint dependencies to extras_require (#8330) 2020-09-17 16:45:22 -04:00
secrets.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
server.py Fix ratelimiting for federation /send requests. (#8342) 2020-09-18 10:49:29 +01:00
types.py Switch metaclass initialization to python 3-compatible syntax (#8326) 2020-09-16 15:15:55 -04:00
visibility.py Convert groups and visibility code to async / await. (#7951) 2020-07-27 12:32:08 -04:00