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

Check printf return values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • unscheduled
    • src
    • other

    Description

      Functions like printf can fail. Subversion should not just ignore the
      return value and continue. The log command in the svn client uses
      printf without any checks. The function apr_file_printf is similar to
      printf. The diff command in libsvn_client uses apr_file_printf without
      any checks.
      
      Some of these could use svn_io_file_printf but be aware that this will
      allocate memory for a sprintf first. Some should use apr_file_puts or
      apr_file_write directly.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              philipm Philip Martin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: