- **status**: review --> fixed
- **Comment**:

commit 729f71fbfff0eea6d4a6a394780142b87a9fb472 (HEAD -> develop, 
origin/develop)
Author: Thanh Nguyen <[email protected]>
Date:   Fri Aug 9 09:51:28 2019 +1000

    imm: Fix Object ID and Class ID type inconsistency [#2770]
    




---

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

**Status:** fixed
**Milestone:** 5.19.10
**Created:** Wed Jan 24, 2018 03:42 PM UTC by Vu Minh Nguyen
**Last Updated:** Tue Aug 20, 2019 02:01 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 [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to