Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/submodules/external/bpf_conforman…
Browse files Browse the repository at this point in the history
…ce-41ec319
  • Loading branch information
Alan-Jowett committed Apr 27, 2024
2 parents c8a2a8d + 7d6da19 commit d5a3f0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/posix.yml
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Initialize CodeQL
if: inputs.build_codeql == true
uses: github/codeql-action/init@4355270be187e1b672a7a1c7c7bae5afdc1ab94a
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71
with:
languages: 'cpp'

Expand Down Expand Up @@ -295,4 +295,4 @@ jobs:

- name: Perform CodeQL Analysis
if: inputs.build_codeql == true
uses: github/codeql-action/analyze@4355270be187e1b672a7a1c7c7bae5afdc1ab94a
uses: github/codeql-action/analyze@c7f9125735019aa87cfc361530512d50ea439c71
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Initialize CodeQL
if: inputs.build_codeql == true
uses: github/codeql-action/init@4355270be187e1b672a7a1c7c7bae5afdc1ab94a
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71
with:
languages: 'cpp'

Expand Down Expand Up @@ -104,4 +104,4 @@ jobs:

- name: Perform CodeQL Analysis
if: inputs.build_codeql == true
uses: github/codeql-action/analyze@4355270be187e1b672a7a1c7c7bae5afdc1ab94a
uses: github/codeql-action/analyze@c7f9125735019aa87cfc361530512d50ea439c71
2 changes: 1 addition & 1 deletion vm/ubpf_vm.c
Expand Up @@ -1118,7 +1118,7 @@ validate(const struct ubpf_vm* vm, const struct ebpf_inst* insts, uint32_t num_i
}
} else if (inst.src == 1) {
int call_target = i + (inst.imm + 1);
if (call_target < 0 || call_target > num_insts) {
if (call_target < 0 || call_target >= num_insts) {
*errmsg =
ubpf_error("call to local function (at PC %d) is out of bounds (target: %d)", i, call_target);
return false;
Expand Down

0 comments on commit d5a3f0a

Please sign in to comment.