Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-Pick: Handle long interned strings in MSI parsing #25096

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

iansltx
Copy link
Member

@iansltx iansltx commented Jan 2, 2025

For #24720, merged into main via #25079.

For #24720. Used
https://github.com/ChaelChu/msi-props-reader/blob/master/src/msiPropsReader.ts
as inspiration. Not sure why the shift is 17 bits rather than 16 here
but confirmed that 17 works and 16 doesn't.

Tested against both existing GDrive MSIs for regression testing, plus
the one mentioned in the ticket.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
@iansltx iansltx requested a review from a team as a code owner January 2, 2025 16:43
@iansltx iansltx merged commit 425182c into main Jan 2, 2025
19 checks passed
@iansltx iansltx deleted the cherry-pick-24720-msi-upload-fix branch January 2, 2025 16:46
@iansltx iansltx restored the cherry-pick-24720-msi-upload-fix branch January 2, 2025 17:24
@iansltx iansltx deleted the cherry-pick-24720-msi-upload-fix branch January 2, 2025 17:26
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 56.25000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 63.83%. Comparing base (4c463b6) to head (bd93cc3).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/file/msi.go 56.25% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25096      +/-   ##
==========================================
+ Coverage   54.30%   63.83%   +9.52%     
==========================================
  Files        1615     1615              
  Lines      153594   153608      +14     
  Branches     3987     3987              
==========================================
+ Hits        83416    98057   +14641     
+ Misses      63296    47750   -15546     
- Partials     6882     7801     +919     
Flag Coverage Δ
backend 64.70% <56.25%> (+10.41%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants