Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1999

Improper UTF-8 conversion in svn_opt_parse_path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: 1.2.0
    • Component/s: libsvn_subr
    • Labels:
      None

      Description

      If svn_opt_parse_path detects an '@' sign, it decodes the following text from
      UTF-8 to the locale charset and passes the result to svn_opt_parse_revision(). 
      svn APIs are supposed to accept UTF-8 string arguments (with a few obvious
      exceptions in svn_utf.h), so this is clearly incorrect.  If there is a need to
      do a UTF-8 to locale conversion in order to parse revisions, it should be done
      inside svn_opt_parse_revision().
      
      This defect may result from the code having been converted in r3250 from a set
      of private functions to a set of public functions.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ghudson Greg Hudson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: