8000 src/dm: replace data size assertion by explicit gerror by jfgreenmt · Pull Request #1728 · rauc/rauc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

src/dm: replace data size assertion by explicit gerror #1728

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

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

jfgreenmt
Copy link
Contributor

When using a modified raucb bundle with payload that is not a multiple of 4096, the following assertion happens:

"rauc-CRITICAL **: r_dm_setup: assertion 'dm->data_size > 0 && dm->data_size % 4096 == 0' failed"

Repalce the assertion with a proper gerror failure.

Fixes: #1684
Reported-by: Tobias Graemer tobias.graemer@mt.com
Signed-off-by: Janek Filus janek.filus@mt.com

@ejoerns ejoerns added the fixed label Jun 5, 2025
@ejoerns ejoerns added this to the Release v1.15 milestone Jun 5, 2025
Copy link
codecov bot commented Jun 5, 2025

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.51%. Comparing base (f9c607e) to head (c966aef).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/dm.c 40.00% 3 Missing ⚠️

❌ Your patch status has failed because the patch coverage (40.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1728      +/-   ##
==========================================
- Coverage   84.52%   84.51%   -0.02%     
==========================================
  Files          76       76              
  Lines       22324    22328       +4     
==========================================
+ Hits        18870    18871       +1     
- Misses       3454     3457       +3     
Flag Coverage Δ
service=false 81.00% <40.00%> (-0.02%) ⬇️
service=true 84.47% <40.00%> (-0.02%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

When using a modified raucb bundle with payload that is
not a multiple of 4096, the following assertion happens:

"rauc-CRITICAL **: r_dm_setup: assertion 'dm->data_size > 0 && dm->data_size % 4096 == 0' failed"

Replace the assertion with a proper gerror failure.

Fixes: rauc#1684
Reported-by: Tobias Graemer <tobias.graemer@mt.com>
Signed-off-by: Janek Filus <janek.filus@mt.com>
@jfgreenmt jfgreenmt force-pushed the task/fix_1684 branch from 35cf34c B0E9 to c966aef Compare June 5, 2025 15:15
@ejoerns ejoerns requested a review from jluebbe June 5, 2025 15:19
@jluebbe jluebbe changed the title src/dm: replace data size assertion by gerror failure src/dm: replace data size assertion by explicit gerror Jun 6, 2025
@jluebbe jluebbe merged commit b0d58a1 into rauc:master Jun 6, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when mounting a corrupt bundle
3 participants
0