Skip to content

Commit df7ebf9

Browse files
authored
Handle long entitlements section in NPTicket 2.1 tickets (#1089)
* Handle long entitlements section in NPTicket 2.1 tickets * Remove previous padding as it's no longer needed. * Add back one bit of padding as it was needed * Get Qodana to quit it's whining * More Qodana blugeoning
1 parent b428b35 commit df7ebf9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/qodana_code_quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
contents: write
1717
pull-requests: write
1818
checks: write
19+
security-events: write
20+
actions: read
1921
steps:
2022
- uses: actions/checkout@v3
2123
with:

ProjectLighthouse/Tickets/Parser/TicketParser21.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public bool ParseTicket()
2929

3030
this.reader.ReadTicketUInt32(); // status
3131

32+
SectionHeader entitlementsSection = this.reader.ReadSectionHeader(); // entitlements section
33+
this.reader.SkipBytes(entitlementsSection.Length);
34+
3235
this.reader.ReadTicketEmpty(); // padding
33-
this.reader.ReadTicketEmpty();
3436

3537
SectionHeader footer = this.reader.ReadSectionHeader(); // footer header
3638
if (footer.Type != SectionType.Footer)

0 commit comments

Comments
 (0)