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
F13769749: D19451.diff
Sun, Sep 8, 12:55 AM
Unknown Object (File)
Fri, Sep 6, 3:24 AM
Unknown Object (File)
Fri, Sep 6, 3:23 AM
Unknown Object (File)
Fri, Sep 6, 3:23 AM
Unknown Object (File)
Wed, Sep 4, 9:14 AM
Unknown Object (File)
Mon, Sep 2, 10:14 PM
Unknown Object (File)
Mon, Sep 2, 7:25 AM
Unknown Object (File)
Fri, Aug 30, 8:55 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
Branch
svn1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20336
Build 27617: Run Core Tests
Build 27616: arc lint + arc unit