Skip to content

Question About Impl of CopyAndAssignCidr #3

@ffproxy

Description

@ffproxy

Hello,

I did not understand about the whole allocdips.c implementation , But the line below seems a bug .

Especially on line allowedips.c:39 as below:
#if REG_DWORD == REG_DWORD_LITTLE_ENDIAN
Node->BitAtA ^= (Bits / 8U - 1U) % 8U;
#endif

In my understanding, It should be

#if REG_DWORD == REG_DWORD_LITTLE_ENDIAN
Node->BitAtA &= (Bits / 8U - 1U) % 8U;
#endif

Appreciate, Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions