Fabian Groffen wrote:
> On 03-11-2009 20:16:25 +0000, Martin Kersten wrote:
>> Update of /cvsroot/monetdb/MonetDB5/src/mal
>> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5258
>>
>> Modified Files:
>>       Tag: Nov2009
>>      mal_authorize.mx 
>> Log Message:
>> Test the language argument. Possibly null check. Discovered by Coverity
> 
> I think this commit breaks the original logic since the scenario bat may
> be empty for e.g. the superuser.
there is/should always be a scenario. The default being 'mal'
> 
> 
>> Index: mal_authorize.mx
>> ===================================================================
>> RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_authorize.mx,v
>> retrieving revision 1.82.4.3
>> retrieving revision 1.82.4.4
>> diff -u -d -r1.82.4.3 -r1.82.4.4
>> --- mal_authorize.mx 31 Oct 2009 09:08:59 -0000      1.82.4.3
>> +++ mal_authorize.mx 3 Nov 2009 20:16:23 -0000       1.82.4.4
>> @@ -394,16 +394,14 @@
>>      /* now see if the scenario is permitted (if restrictions for that
>>       * apply)
>>       */
>> +    if (scenario == NULL || *scenario == NULL || strNil(*scenario)) 
>> +            /* of course we DO NOT tell the exact reason here again */
>> +            throw(INVCRED, "checkCredentials", INVCRED_INVALID_USER " 
>> '%s'",*username);
>> +
>>      b = BATselect(scen, id, id);
>>      if (b && BATcount(b) > 0) {
>>              BATiter bi = bat_iterator(b);
>>  
>> -            if (*scenario == NULL || strNil(*scenario)) {
>> -                    BBPunfix(b->batCacheid);
>> -                    /* of course we DO NOT tell the exact reason here again 
>> */
>> -                    throw(INVCRED, "checkCredentials", INVCRED_INVALID_USER 
>> " '%s'",*username);
>> -            }
>> -
>>              /* ok, there are some tuples that we have to consider */
>>              BATloop(b, p, q) {
>>                      tmp = (str)BUNtail(bi, p);
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay 
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Monetdb-checkins mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Monetdb-checkins mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to