subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1503221 - /subversion/trunk/subversion/libsvn_subr/win32_xlate.c
Date Mon, 15 Jul 2013 13:01:27 GMT
Author: danielsh
Date: Mon Jul 15 13:01:27 2013
New Revision: 1503221

URL: http://svn.apache.org/r1503221
Log:
Follow-up to r1503203:

* subversion/libsvn_subr/win32_xlate.c
  (get_page_id_from_name): Don't read freed memory.

Found by: philip

Modified:
    subversion/trunk/subversion/libsvn_subr/win32_xlate.c

Modified: subversion/trunk/subversion/libsvn_subr/win32_xlate.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/win32_xlate.c?rev=1503221&r1=1503220&r2=1503221&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/win32_xlate.c (original)
+++ subversion/trunk/subversion/libsvn_subr/win32_xlate.c Mon Jul 15 13:01:27 2013
@@ -122,7 +122,7 @@ get_page_id_from_name(UINT *page_id_p, c
     {
       apr_status_t saved = err->apr_err;
       svn_error_clear(err);
-      return err->apr_err; /* probably SVN_ERR_ATOMIC_INIT_FAILURE */
+      return saved; /* probably SVN_ERR_ATOMIC_INIT_FAILURE */
     }
 
   hr = CoCreateInstance(&CLSID_CMultiLanguage, NULL, CLSCTX_INPROC_SERVER,



Mime
View raw message