#1 2023-03-18 07:21:20

redhan_xp
Member
Registered: 2023-03-18
Posts: 13

websocket parse bug

CONNECTION: KEEP-ALIVE, UPGRADE

mormot.net.http 

1374                repeat
1375                  inc(P);
1376                until P^ <= ' ';
                      Inc(P); // add ok

Last edited by redhan_xp (2023-03-18 07:48:35)

Offline

#2 2023-03-18 08:24:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,207
Website

Re: websocket parse bug

Perhaps https://github.com/synopse/mORMot2/commit/5b6a729b
is more correct than inc(P);

Offline

#3 2023-03-18 09:04:28

redhan_xp
Member
Registered: 2023-03-18
Posts: 13

Re: websocket parse bug

until P^ <> ' ';

test ok, thanks

Offline

Board footer

Powered by FluxBB