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

[stable25] fix: BMP image without color info causes array access on false #38959

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Jun 23, 2023

  • Resolves: Trying to access array offset on value of type bool at lib/private/legacy/OC_Image.php#934

Summary

Invalid BMPs can cause PHP errors to be logged again and again.

26+ don't have this problem because the OC_Image method was replaced with a call to GD in #35560

TODO

  • Fix array access
  • Manual tests to verify the error is gone

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst added bug 2. developing Work in progress labels Jun 23, 2023
@ChristophWurst ChristophWurst added this to the Nextcloud 25.0.9 milestone Jun 23, 2023
@ChristophWurst ChristophWurst self-assigned this Jun 23, 2023
@ChristophWurst ChristophWurst changed the title fix: BMP image without color info causes array access on false [stable25] fix: BMP image without color info causes array access on false Jun 23, 2023
Copy link
Contributor

@hamza221 hamza221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ☑️

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 23, 2023
@ChristophWurst ChristophWurst marked this pull request as ready for review June 23, 2023 10:51
@ChristophWurst ChristophWurst requested review from a team, ArtificialOwl, icewind1991 and nfebe and removed request for a team June 23, 2023 13:18
@ChristophWurst ChristophWurst merged commit 54885ea into stable25 Jul 5, 2023
@ChristophWurst ChristophWurst deleted the fix/oc-image-bmp-no-color branch July 5, 2023 08:54
@blizzz blizzz mentioned this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
Development

Successfully merging this pull request may close these issues.

3 participants