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
Unknown Object (File)
Thu, Jul 25, 3:23 AM
Unknown Object (File)
Sat, Jul 20, 4:49 AM
Unknown Object (File)
Sun, Jul 14, 3:47 PM
Unknown Object (File)
Thu, Jul 11, 7:42 AM
Unknown Object (File)
Thu, Jul 11, 1:49 AM
Unknown Object (File)
Wed, Jul 10, 5:17 PM
Unknown Object (File)
Thu, Jun 27, 9:41 AM
Unknown Object (File)
Jun 20 2024, 10:59 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