Commit Graph
94 Commits
Author SHA1 Message Date
Jeremy Klein e9178342a0 chore: suppress ruff F821 on SCons-injected globals in patch_jpegdec 2026-05-19 20:05:07 +02:00
Jeremy Klein 9e68ced046 refactor: apply JPEGDEC patches via git apply, not string replace
The previous patch_jpegdec.py used in-place string replacement with a
single shared marker for two distinct DC writes (main store and
successive-approximation update). If only one of the two anchors
matched, the file was written half-patched and the shared marker locked
the partial state in for every subsequent run.

Generate the fixes as `git format-patch` artifacts under
scripts/jpegdec_patches/, then apply them in lexical order via
`git apply`. Idempotency is decided by git itself: `--check --reverse`
succeeds means already applied; `--check` succeeds means appliable;
neither aborts the build rather than leaving a half-patched file.

No behaviour change to the patched JPEGDEC source: same redirect, same
DC guards, same intent. Just stops the pre-build script from doing
something it has no business doing.
2026-05-19 20:05:07 +02:00
Jeremy Klein 597edeebd8 fix: guard DC writes in JPEGDEC MCU_SKIP path
EIGHT_BIT_GRAYSCALE decode of a 3-component progressive JPEG calls
JPEGDecodeMCU_P with MCU_SKIP for Cb and Cr after every Y MCU. The
existing safe-pMCU patch redirects the wild pointer to &sMCUs[0] but
leaves the DC store unguarded, so each chroma skip overwrites the
just-decoded Y DC with the chroma DC predictor. Output reads sMCUs[0],
gets the trailing Cr DC (~0), and renders an all-black image.

Add `if (iMCU >= 0)` guards to the two pMCU[0] writes (main DC store
and successive-approximation update). The pointer redirect stays as the
AC wild-pointer defence; the new guards stop the silent corruption at
sMCUs[0]. The two fixes are independent and both required.
2026-05-19 20:05:07 +02:00
jpirnay 9f9d52cac1 Define encoding 2026-05-16 21:09:04 +02:00
jpirnay 9d7a05de81 Add swedish hyphenation (upstream PR 1637) 2026-05-16 09:46:24 +02:00
jpirnay ef70d1d8c8 List handling fixes 2026-05-15 22:44:54 +02:00
jpirnay 0ef05f0b77 Resolve conflict for testcases 2026-05-15 20:51:26 +02:00
jpirnay ae704153d9 Update test-epub to include super and subscript 2026-05-15 20:37:47 +02:00
jpirnay d337110649 Add info 2026-05-13 09:27:29 +02:00
jpirnay bf3689b917 Amend script for Linux use 2026-05-13 09:25:31 +02:00
Joel Goguen 3a612df4b5 feat: Allow OTA update to beta releases 2026-05-07 23:29:15 -04:00
jpirnay 47d3d1fc9c chore: Added RAM to firmware_size_history.py script (#1830) 2026-05-05 10:26:29 +02:00
jpirnay 2a30882c91 Update images 2026-05-04 15:00:44 +02:00
jpirnay 830cde615a Add font preview page 2026-05-04 14:27:22 +02:00
jpirnayandCopilot 48dec00d97 Fix relative directory
Co-authored-by: Copilot <copilot@github.com>
2026-05-03 23:08:24 +02:00
jpirnayandCopilot 34d976d8f7 Add relative directories
Co-authored-by: Copilot <copilot@github.com>
2026-05-03 23:01:29 +02:00
jpirnay 5617db3ad2 Fix font-location 2026-05-03 22:42:54 +02:00
jpirnay 6b002abc38 Language updates 2026-05-03 10:29:10 +02:00
jpirnay 999cf74c58 Account for deduplication 2026-05-01 09:25:15 +02:00
jpirnay ad2e3765ba Some environment cleaning 2026-04-28 18:09:36 +02:00
Joel Goguen 0010b200ed feat(gha): Auto-publish releases
- GHA release workflow is updated to use an action for uploading all assets. The
	action docs say it updates a release if one already exists, and since this
	triggers on release and we pass a release tag we know the release already
	exists.
- GHA release candidate workflow is updated to auto-publish a pre-release
	release on push to a `release/**` branch. A script is added and used to
	generate a release message made up of the commits since the last release of
	any kind.
- ACT profiles are added to allow locally testing these workflows without
	needing to push and wait for GHA to run.
- Docs are updated to note how to test the workflows locally.
2026-04-23 22:48:41 -04:00
jpirnay 7da8b335ab Review comments 2026-04-21 22:16:23 +02:00
jpirnay ed01127bf2 More changes 2026-04-12 22:55:07 +02:00
jpirnay a811c96d74 Some comments 2026-04-12 22:34:28 +02:00
jpirnay bec30e3403 Review fixes 2026-04-12 22:25:12 +02:00
jpirnay c6e94d6966 Exclude commented out strings 2026-04-12 06:48:05 +02:00
jpirnay ce81cfee04 Fixing script 2026-04-11 09:47:18 +02:00
jpirnay bfeb806a0b Review changes 2026-04-11 09:43:48 +02:00
jpirnay 130dacbd38 fix: Wild pointer crash in JPEGDEC MCU_SKIP handling#1627 by itsthisjustin 2026-04-10 11:54:27 +02:00
martin brook 773238fdf5 chore: drop JPEGDEC patch in favour of upstream fix (#1465)
## Summary

The progressive JPEG fixes (AC table skip, MCU_SKIP guard) from PR #1136
have been fixed upstream in bitbank2/JPEGDEC@8628297. Pin to that commit
and remove the pre-build patch script.

## Additional Context

Tested on Strange Pictures epub

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**< PARTIALLY >**_
2026-04-08 10:32:30 +02:00
jpirnay abbf69649e Revert "Merge pull request #25 from jpirnay/fix-pr1582" and refactor koreader 2026-04-07 20:24:51 +02:00
jpirnay 22267f038a Updated testscripts 2026-04-06 12:06:21 +02:00
jpirnay db7d5af56b Add test cases 2026-04-06 11:55:25 +02:00
jpirnay 2d6d14af1f Making screenshot command device dimensions aware 2026-04-05 11:29:23 +02:00
jpirnay 97d4400b55 Merge branch 'refactor-i18n_offset-table' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-04-03 11:42:01 +02:00
jpirnay 03217d871d Switch to language_code instead of language _order key 2026-04-03 11:41:34 +02:00
jpirnay 6de5ebc69c Merge branch 'feat-weather' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-04-03 11:06:17 +02:00
jpirnay 01d05e654d Bugfixing and refactoring - proper menu icons 2026-04-03 11:03:10 +02:00
jpirnay adc4efa9e6 Switch to defusedxml 2026-04-03 10:17:42 +02:00
jpirnay 783828adb0 Merge branch 'feat-weather' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-04-02 20:19:43 +02:00
jpirnay b3a80c162a Review changes 2026-04-02 20:19:19 +02:00
jpirnay a4a0e6b5dc Merge branch 'feat-weather' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-04-02 18:37:55 +02:00
jpirnay d7bd88bec7 clang-format agnostic 2026-04-02 18:30:31 +02:00
jpirnay 811b4807cd Increase icon size a bit 2026-04-02 18:28:24 +02:00
jpirnay 706eb0e8e7 Improve look and feel 2026-04-02 18:16:49 +02:00
jpirnay cd69b4da77 Slight reformat 2026-03-31 15:09:15 +02:00
jpirnay cf252dc20d Merge branch 'refactor-i18n_offset-table' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-31 14:52:24 +02:00
jpirnay 59466b0625 A bit of reformatting 2026-03-31 14:45:31 +02:00
jpirnay c8b166606e Stage scripts 2026-03-30 18:12:52 +02:00
jpirnay f764d9c6a0 Merge remote-tracking branch 'pablohc/refactor/pr-1258-cover-overlay' into mybuild
# Conflicts:
#	lib/I18n/translations/english.yaml
#	scripts/gen_i18n.py
#	src/CrossPointSettings.h
#	src/SettingsList.h
#	src/activities/boot_sleep/SleepActivity.cpp
#	src/activities/boot_sleep/SleepActivity.h
2026-03-30 16:12:00 +02:00