[Serdev] [Tracker] Created: (SER-194) Unsafe has function in PA

Jan Janak (JIRA) tracker at iptel.org
Tue Dec 12 11:38:51 UTC 2006


Unsafe has function in PA
-------------------------

                 Key: SER-194
                 URL: http://tracker.iptel.org/browse/SER-194
             Project: SER
          Issue Type: Bug
          Components: Presence
    Affects Versions: Ottendorf
            Reporter: Andrei Pelinescu - Onciul
             Fix For: Ottendorf


Hi,


Jiri found an unsafe hash function in pa (modules/pa/pdomain.c:37).

This is the same old usrloc hash, but in an worse version: it returns
an int and the result is used as a hashtable index => could be negative.
 (return res % _d->size and res can become negative => the remainder in
 C can be negative).


It's ok if I replace it in the same way as for usrloc? (another hash
func, fixed hash table size)


Andrei

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.iptel.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Serdev mailing list