[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix for access violation in svn_fs__path_valid()

From: Stefan <luke1410_at_gmx.de>
Date: Mon, 1 Feb 2016 00:34:32 +0100

Hi,

as discussed on the dev list (topic: inconsistent null-ptr handling in
utf-path related functions):
http://mail-archives.apache.org/mod_mbox/subversion-dev/201601.mbox/browser
attached is a patch to prevent svn_fs__path_valid() to run in an access
violation when creating an error due to path being invalid (in this case
NULL).

[[
Prevent an access violation upon an invalid call, while generating an error
message.

* libsvn_fs/fs-loader.c:
    (svn_fs__path_valid): add null-check for path-parameter when
generating the
                           error and use "NULL" in the message, in case
                           it actually is null.
]]

Regards,
Stefan

Received on 2016-02-01 00:34:57 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.