[Feature] Integrity verification
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
研究方向
首先閱讀目前的 AppImage 格式規範,以及連結的 AppImageSpec issues #29 和 #34。比較 MD5、檔案大小和 CRC 這幾種提議的方法,然後確定規範應採用哪種完整性機制,以及將如何驗證完成情況。
由索引模型根據 Issue 內容生成。
描述
AppImages are files which can get really big in size, and download errors can occur with such sizes
I propose to add some way to (at least try to) verify it's integrity at launch
Why ?
As of now, a partially downloaded AppImage will fail to launch with
Something went wrong trying to read the squashfs image.
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
It is maybe harmless in this case, but I think it could potentially cause problems if the partially downloaded AppImage seems like a legit squashfs image. (This is only a theory, I do not have any proof this can happen)
Implementation propositions :
- Use https://github.com/AppImage/AppImageSpec/issues/29 and verify the md5sum of the AppImage on launch.
Cons : as pointed there, that would be costly. Plus, I'm not sure if this section is actually going to be in the specification - Store the file size in bytes in an ELF section, maybe
.appimage_size, and verify the size of the executed file is the same
Cons : some programs might zerofill the file and fill bytes as their download them - Store a CRC checksum in an ELF section, maybe
.crc_checksum, and verify it. I think that's the best option, because CRC is an algorithm made for file integrity (as opposed to a simple file size verification), and is more lightweight than MD5
I think this feature should be looked at before https://github.com/AppImage/AppImageSpec/issues/34 (because well, it would modify the spec)
- 主要語言
- 沒有語言資料
- 星號
- 94
- 分支
- 30
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
AppImage/AppImageSpec 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#60 · 7 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#59 · 15 則留言 · 2 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 35/100
AppImage/AppImageSpec#48 · 2 則留言 ·
-
help wanted
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#44 · 10 則留言 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 35/100
AppImage/AppImageSpec#40 · 1 則留言 ·
查看 AppImage/AppImageSpec 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
-
Section 4.3未關閉
難度 2/5 1-3 小時 新手友好度 66/100
w3c-cg/a11y-req-ja#9 ·
-
Bases views: Explain how to show, hide and reorder properties可能已有人在做 @churnish 今天認領。 未關閉
難度 1/5 1-3 小時 新手友好度 91/100
obsidianmd/obsidian-help#1192 ·
維護者通常 2 天內回覆
-
discussion need-feedback type: documentation
難度 1/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆