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

[PATCH] SEGV when propget of non-existent property

From: Philip Martin <pmartin_at_uklinux.net>
Date: 2001-11-06 01:16:17 CET

'svn propget' SEGV's when asked for a property that doesn't exist.

* subversion/libsvn_client/.svn/text-base/prop_commands.c:
  svn_client_propget(): handle non-existent property

Index: subversion/libsvn_client/prop_commands.c
===================================================================
--- subversion/libsvn_client/.svn/text-base/prop_commands.c Wed Oct 31 19:31:32 2001
+++ subversion/libsvn_client/prop_commands.c Tue Nov 6 00:09:31 2001
@@ -183,7 +183,8 @@
     {
       svn_stringbuf_t *propval;
       SVN_ERR (svn_wc_prop_get (&propval, propname, target, pool));
- apr_table_set(prop_table, target->data, propval->data);
+ if (propval)
+ apr_table_set(prop_table, target->data, propval->data);
     }
 
   *props = prop_table;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:48 2006

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.