Skip to content

wrong type output #21

@romanholidaypancakes

Description

@romanholidaypancakes
  • error 1

    • original
    struct Struct1
    {
        uint16 filed_1 : 1;
        uint16 filed_2 : 5;
        uint16 filed_3 : 10;
    };
    • PDBRipper output
    struct Struct1
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    
  • error 2

    • original
    struct Struct2
    {
        union {
      	  uint16 filed_1 : 1;
      	  uint16 filed_2 : 5;
      	  uint16 filed_3 : 10;
        };
    };
    
    • PDBRipper output
    struct Struct2
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    
  • error 3

    • original
    union Struct4 {
        struct
        {
      	  uint16 filed_1 : 1;
      	  uint16 filed_2 : 5;
      	  uint16 filed_3 : 10;
        };
    
    };
    
    • PDBRipper output
    union Struct4
    {
        unsigned int filed_1:1;
        unsigned int filed_2:5;
        unsigned int filed_3:10;
    };
    

they have completely different meanings

see assembly output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions