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)
Wed, Oct 9, 3:45 PM
Unknown Object (File)
Wed, Oct 9, 12:46 PM
Unknown Object (File)
Tue, Oct 1, 6:08 PM
Unknown Object (File)
Wed, Sep 18, 12:27 PM
Unknown Object (File)
Sep 13 2024, 11:03 AM
Unknown Object (File)
Sep 10 2024, 9:58 AM
Unknown Object (File)
Sep 8 2024, 1:20 AM
Unknown Object (File)
Sep 8 2024, 1:06 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