Page MenuHomePhabricator

Parse unusual Subversion protocol frames which contain extra whitespace
ClosedPublic

Authored by epriestley on May 15 2018, 10:58 PM.
Tags
None
Referenced Files
F14760187: D19451.id46532.diff
Wed, Jan 22, 4:59 PM
Unknown Object (File)
Tue, Jan 21, 3:55 PM
Unknown Object (File)
Tue, Jan 21, 9:25 AM
Unknown Object (File)
Dec 14 2024, 4:56 PM
Unknown Object (File)
Dec 6 2024, 6:10 AM
Unknown Object (File)
Dec 4 2024, 1:00 PM
Unknown Object (File)
Nov 28 2024, 9:54 PM
Unknown Object (File)
Nov 27 2024, 3:12 AM
Subscribers
None

Details

Summary

Fixes T13140. See PHI660.

Recent versions of Subversion can send a (get-file true false false ) protocol frame with extra space between "false" and "false". This is allowed by the protocol spec, but never normally happens, and we do not parse it correctly.

Instead, parse it correctly.

Test Plan
  • Added unit tests.
  • Ran svn proplist svn+ssh://.../diffusion/X/file.c under SVN 1.10 before and after the change.
    • Before: indefinite hang.
    • After: completed in finite time.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable