Changeset: 485ad67f2d1e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=485ad67f2d1e
Modified Files:
        monetdb5/mal/mal_authorize.c
Branch: default
Log Message:

Always return a private copy of strings
Strings taken from a BAT should be copied before passing on to
the MAL interpreter layer.


diffs (12 lines):

diff --git a/monetdb5/mal/mal_authorize.c b/monetdb5/mal/mal_authorize.c
--- a/monetdb5/mal/mal_authorize.c
+++ b/monetdb5/mal/mal_authorize.c
@@ -546,7 +546,7 @@ AUTHgetUsername(str *username, Client *c
                GDKfatal("Internal error: user id that doesn't exist: " OIDFMT, 
id);
 
        useri = bat_iterator(user);
-       *username = BUNtail(useri, p);
+       *username = GDKstrdup( BUNtail(useri, p));
        return(MAL_SUCCEED);
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to