- **status**: assigned --> review


---

** [tickets:#2770] imm: data size mismatches in pbe code**

**Status:** review
**Milestone:** 5.19.10
**Created:** Wed Jan 24, 2018 03:42 PM UTC by Vu Minh Nguyen
**Last Updated:** Wed Jul 24, 2019 04:07 AM UTC
**Owner:** Thanh Nguyen


Object ID and Class ID are `unsigned int` data type, but they are not used 
consistently through the codes (local variables and function parameters) - few 
places use `int`.

If the values of these IDs reach over MAX_INT,  we may have problem when doing 
sqlite queries.

    ::: C++
    static void valuesToPBE(const SaImmAttrValuesT_2 *p, SaImmAttrFlagsT 
attrFlags, int objId, void *db_handle) {        }
    
    void objectModifyDiscardMatchingValuesOfAttrToPBE(
    void *db_handle, std::string objName, const SaImmAttrValuesT_2 *attrValue,
    SaUint64T ccb_id) {
    int object_id;
    int class_id;
    }

     

  


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to