From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Protocol Buffers" |
|---|
| claim | "google::protobuf::internal::DescriptorTable (one per .proto file, C++ runtime 7.38-dev): flags, serialized size, pointer to the serialized FileDescriptorProto, pointer to the file name, once flag, dependency table list, counts and reflection tables." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Protocol Buffers" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DescriptorTable" |
|---|
| size_min | 88 |
|---|
| abi | "lp64" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 1 |
|---|
| type | "bool" |
|---|
| name | "is_initialized" |
|---|
|
| offset | "0x01" |
|---|
| size | 1 |
|---|
| type | "bool" |
|---|
| name | "is_eager" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "size" |
|---|
| notes | "length of serialized descriptor" |
|---|
|
| offset | "0x08" |
|---|
| size | 8 |
|---|
| type | "const char *" |
|---|
| name | "descriptor" |
|---|
| notes | "serialized FileDescriptorProto, starts 0x0A" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "const char *" |
|---|
| name | "filename" |
|---|
| notes | "NUL-terminated .proto path" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "absl::once_flag *" |
|---|
| name | "once" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "const DescriptorTable * const *" |
|---|
| name | "deps" |
|---|
|
| offset | "0x28" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "num_deps" |
|---|
|
| offset | "0x2C" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "num_messages" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "const MigrationSchema *" |
|---|
| name | "schemas" |
|---|
|
| offset | "0x38" |
|---|
| size | 8 |
|---|
| type | "const MessageGlobalsBase * const *" |
|---|
| name | "message_globals" |
|---|
|
| offset | "0x40" |
|---|
| size | 8 |
|---|
| type | "const uint32_t *" |
|---|
| name | "offsets" |
|---|
|
| offset | "0x48" |
|---|
| size | 8 |
|---|
| type | "const EnumDescriptor **" |
|---|
| name | "file_level_enum_descriptors" |
|---|
|
| offset | "0x50" |
|---|
| size | 8 |
|---|
| type | "const ServiceDescriptor **" |
|---|
| name | "file_level_service_descriptors" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct DescriptorTable; initializer in compiler/cpp/file.cc:1257-1285. Offsets computed assuming natural alignment on LP64; layout changes between versions" |
|---|
| repo | "https://github.com/protocolbuffers/protobuf" |
|---|
| commit | "522b8d41d5d5cdc7ef581c913277aa309f9b7c6a" |
|---|
| path | "src/google/protobuf/generated_message_reflection.h" |
|---|
| lines | "283-299" |
|---|
|
| type | "source" |
|---|
| detail | "Read the declaration: bool is_initialized, bool is_eager, int size, then pointers descriptor, filename, once, deps, then int num_deps, int num_messages, then schemas, message_globals, offsets, file_level_enum_descriptors, file_level_service_descriptors. LP64 natural alignment gives 0x00,0x01,0x04,0x08,0x10,0x18,0x20,0x28,0x2C,0x30,0x38,0x40,0x48,0x50 and total 0x58 = 88, matching the data." |
|---|
| repo | "https://github.com/protocolbuffers/protobuf" |
|---|
| commit | "522b8d41d5d5cdc7ef581c913277aa309f9b7c6a" |
|---|
| path | "src/google/protobuf/generated_message_reflection.h" |
|---|
| lines | "283-299" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DescriptorTable" |
|---|
| topic | "Library:Protocol Buffers/Embedded descriptors" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T05:04:17.623Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T23:02:31.225Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read the struct declaration at the cited commit and recomputed LP64 offsets and total size 88." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T23:02:30.710Z" |
|---|
| summary | "Raise to high: struct field order and LP64 offsets recomputed from the declaration" |
|---|
| changed | |
|---|
|
|
|---|