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

h265.go 中 vps Decode有越界 #151

Open
ws-daixy opened this issue Sep 4, 2024 · 1 comment
Open

h265.go 中 vps Decode有越界 #151

ws-daixy opened this issue Sep 4, 2024 · 1 comment

Comments

@ws-daixy
Copy link

ws-daixy commented Sep 4, 2024

vps.Layer_id_included_flag = make([][]uint8, vps.Vps_num_layer_sets_minus1)
for i := 1; i <= int(vps.Vps_num_layer_sets_minus1); i++ {
vps.Layer_id_included_flag[i] = make([]uint8, vps.Vps_max_layer_id)
for j := 0; j <= int(vps.Vps_max_layer_id); j++ {
vps.Layer_id_included_flag[i][j] = bs.Uint8(1)
}
}
这里,make 了一个Vps_num_layer_sets_minus1大小的slice,但是i<=Vps_num_layer_sets_minus1,所以Layer_id_included_flag会越界,同时下面的Layer_id_included_flag也是会越界

yapingcat pushed a commit that referenced this issue Sep 4, 2024
@yapingcat
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants