Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
10
Star
4
Fork
64
src-openEuler
/
shim
Code
Issues
4
Pull Requests
5
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
184
回合上游补丁
Open
conflicted
zhangxingrong:master
src-openEuler:master
zhangxingrong
create on 2024-07-19 14:05
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
1.shim: don't set second_stage to the empty string When LoadOptions is either L" " or L"shim.efi ", parse_load_options sets second_stage to the empty string. This is unlikely to be what is intended, and typically leads to a non-obvious failure mode. The failure happens because parse_load_options's call to split_load_options (after eating shim's own filename, if present) returns the empty string. Since init_grub typically passes second_stage to start_image, this causes read_image to concatenate the empty string onto the directory name. This means PathName refers to the directory, not the path to a pe image. Then load_image successfully opens a handle on the directory and reads "data" from it. It only eventually fails when handle_image calls read_header which finds that this data isn't in fact a pe header, reporting "Invalid image". This scenario has been seen when shim is loaded via rEFInd 0.11.5, which sets LoadOptions to the name of the shim program followed by a space character. Instead, modify parse_load_options to leave second_stage set to its default value rather than the empty string. patch链接:https://github.com/rhboot/shim/pull/640/commits/d3843df708da40215e0f8bc6926787e365b154e4
The Pull Request cannot be automatically merged.
resolve conflicts with WebIDE
How to merge Pull Request
git checkout master
git pull https://gitee.com/zhangxingrong/shim.git master
git push origin master
Comments
12
Commits
1
Files
2
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
谢志鹏
xiezhipeng1
zhujianwei001
zhujianwei001
Monday
licihua
hexiaowen
overweight
luhuaxin
HuaxinLuGitee
陈棋德
dillon_chen
syyhao
shenyangyang01
No Setting
Min number
0
Tester
谢志鹏
xiezhipeng1
zhujianwei001
zhujianwei001
Monday
licihua
hexiaowen
overweight
luhuaxin
HuaxinLuGitee
陈棋德
dillon_chen
syyhao
shenyangyang01
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
openeuler-cla/yes
ci_successful
sig/Base-service
Link Issue
No link issue
Successfully merged pull requests will close issues
Milestone
No related milestones
Automatic processing
Delete branch after merge
The commit branch is a defualt branch and cannot be deleted
Close related Issues after merge
Use flattening for the Pull Request merger
After checking this option, it is recommended to use the Squash Merge method to consolidate to simplify the submission history
Participators
(4)
Cherry-pick Commit
Cherry-pick allows you to select and apply a
specific commit
from one branch to another, enabling quick integration of specific changes without merging the entire branch.
Please select the target branch to apply the Cherry-pick commit to
New branch
The current account does not have a Fork repository, it is recommended to cherry-pick to the Fork repository.
Fork repository
Submit list
Commit SHA
Commit Message
Create a Pull Request based on the Cherry-pick branch
Cancel
Cherry-pick
1
https://gitee.com/src-openeuler/shim.git
git@gitee.com:src-openeuler/shim.git
src-openeuler
shim
shim
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register