aboutsummaryrefslogtreecommitdiff
path: root/src/chain.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-08-26 01:10:16 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-09-02 00:21:23 +0200
commit38d1620529866dbf638c6fd8a3e8e438b3c6a43c (patch)
treeea5e7cda52114c67640636471fafaaf05cbb572d /src/chain.c
parent8a360e32ac3136494a494379a6dbbacef6f95da2 (diff)
Avoid searching for boundary in file content
Making the boundary string very unlikely to collide with the file to upload allows Dillo to assume it would never be found and avoids the expensive memmem() check. Even if major implementations tend to add several '-' characters to multipart/form-data boundaries, this is not enforced by RFC 2046, so it can be increase to 70 random characters. See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/VUB5PIOPJZ2VTCVGQPBZMGOYEISTXCFX/
Diffstat (limited to 'src/chain.c')
0 files changed, 0 insertions, 0 deletions