#52 incorrect pointer arithmetic

closed-fixed
5
2001-10-10
2001-09-05
Anonymous
No

In cdsa_dev/cdsa/src/fwk/mds_util_api/mds_util_query.c
line 3331 (run for MDSUTIL_ListModuleManagers):

tempptr = GuidPtr+(sizeof(CSSM_GUID)*(emmcount-1));

... the addition to GuidPtr is actually multiplied by a
further, implicit sizeof(CSSM_GUID).
So the correct form should be:

tempptr = GuidPtr + (emmcount-1);

(otherwise only first returned info record is
accessible)

Discussion

  • Mohamed Shafik

    Mohamed Shafik - 2001-09-13
    • assigned_to: nobody --> shafikm
     
  • Mohamed Shafik

    Mohamed Shafik - 2001-10-10
    • status: open --> closed-fixed
     
  • Mohamed Shafik

    Mohamed Shafik - 2001-10-10

    Logged In: YES
    user_id=92391

    Changes made to mds_util_query.c to fix this problem.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks