Skip to content

Commit 4e2ec33

Browse files
committed
Validate MIDlet manifest through ZIP stream
1 parent 4abd4ce commit 4e2ec33

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/j2me-toolchain-probe.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ jobs:
8585
(cd build/preverified && jar xf ../../dist/Netormium.jar)
8686
rm -rf build/preverified/META-INF
8787
jar --create --file dist/Netormium.jar --manifest toolchain/Netormium-MANIFEST.MF -C build/preverified .
88-
jar xf dist/Netormium.jar META-INF/MANIFEST.MF
89-
grep -Fx 'MIDlet-Name: Netormium' META-INF/MANIFEST.MF
90-
grep -Fx 'MicroEdition-Profile: MIDP-2.0' META-INF/MANIFEST.MF
91-
rm -rf META-INF
88+
unzip -p dist/Netormium.jar META-INF/MANIFEST.MF | grep -Fx 'MIDlet-Name: Netormium'
89+
unzip -p dist/Netormium.jar META-INF/MANIFEST.MF | grep -Fx 'MicroEdition-Profile: MIDP-2.0'
9290
jar tf dist/Netormium.jar | grep -Fx 'com/netormium/client/NetormiumMIDlet.class'
9391
if jar tf dist/Netormium.jar | grep -q '^javax/microedition/'; then
9492
echo "Java ME API classes must not be bundled in MIDlet JAR" >&2

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 1.0.0-rc21 — MIDlet lifecycle and UI-thread hardening
22
- Repackage ProGuard-preverified classes with a single complete MIDP 2.0 / CLDC 1.1 manifest, avoiding duplicate manifest sections before JAD validation.
3+
- Validate final JAR manifest attributes through direct ZIP streaming so CI does not depend on JAR extraction behavior for the special manifest entry.
34
- Refactor bookmark duplicate detection to avoid an ECJ-generated exception-handler stack merge that ProGuard 7.10.0 cannot preverify.
45
- Fix keypad `0` so the remote Chromium viewport, local screenshot, and persisted tab scroll position all return to the top.
56
- Bound NTM/2 URL, title, text, and interactive element metadata before wire encoding; normalize invalid element kinds and coordinates.

0 commit comments

Comments
 (0)