mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-26 23:18:39 +00:00
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
This commit is contained in:
parent
b428b35f3d
commit
df7ebf977a
2 changed files with 5 additions and 1 deletions
2
.github/workflows/qodana_code_quality.yml
vendored
2
.github/workflows/qodana_code_quality.yml
vendored
|
@ -16,6 +16,8 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
checks: write
|
checks: write
|
||||||
|
security-events: write
|
||||||
|
actions: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -29,8 +29,10 @@ public class TicketParser21 : ITicketParser
|
||||||
|
|
||||||
this.reader.ReadTicketUInt32(); // status
|
this.reader.ReadTicketUInt32(); // status
|
||||||
|
|
||||||
|
SectionHeader entitlementsSection = this.reader.ReadSectionHeader(); // entitlements section
|
||||||
|
this.reader.SkipBytes(entitlementsSection.Length);
|
||||||
|
|
||||||
this.reader.ReadTicketEmpty(); // padding
|
this.reader.ReadTicketEmpty(); // padding
|
||||||
this.reader.ReadTicketEmpty();
|
|
||||||
|
|
||||||
SectionHeader footer = this.reader.ReadSectionHeader(); // footer header
|
SectionHeader footer = this.reader.ReadSectionHeader(); // footer header
|
||||||
if (footer.Type != SectionType.Footer)
|
if (footer.Type != SectionType.Footer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue