Skip to content

Commit eb3adb4

Browse files
Jonathan D.A. Jewellclaude
andcommitted
fix: apply safety triangle fixes (recipe-heredoc-to-install,recipe-shell-quote-vars)
Auto-applied by hypatia dispatch-runner via gitbot-fleet. 3 file(s) modified. Recipes: recipe-heredoc-to-install,recipe-shell-quote-vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b18da3 commit eb3adb4

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.clusterfuzzlite/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -eu
22
# SPDX-License-Identifier: PMPL-1.0
3-
cd $SRC/absolute-zero
3+
cd "$SRC"/absolute-zero
44
cargo +nightly fuzz build
55
for target in $(cargo +nightly fuzz list); do
66
cp ./target/x86_64-unknown-linux-gnu/release/$target $OUT/

setup-and-verify.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ if [ ${#MISSING_TOOLS[@]} -gt 0 ]; then
123123
echo "Install with:"
124124
echo " Fedora: sudo dnf install coq z3 && cargo install just"
125125
echo " Ubuntu: sudo apt install coq z3 && cargo install just"
126+
# WARNING: Pipe-to-shell is unsafe — download and verify first
127+
# WARNING: Pipe-to-shell is unsafe — download and verify first
126128
echo " Deno: curl -fsSL https://deno.land/install.sh | sh"
129+
# WARNING: Pipe-to-shell is unsafe — download and verify first
130+
# WARNING: Pipe-to-shell is unsafe — download and verify first
127131
echo " Lean 4: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh"
128132
echo ""
129133
fi
@@ -217,7 +221,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
217221
if command -v coqc &> /dev/null; then
218222
echo "Building Coq proofs..."
219223
cd proofs/coq/common && coqc CNO.v || echo "⚠ CNO.v failed"
220-
cd $REPO_ROOT
224+
cd "$REPO_ROOT"
221225
fi
222226

223227
# Try Z3
@@ -230,7 +234,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
230234
if command -v lake &> /dev/null; then
231235
echo "Building Lean 4..."
232236
cd proofs/lean4 && lake build || echo "⚠ Lean build failed"
233-
cd $REPO_ROOT
237+
cd "$REPO_ROOT"
234238
fi
235239
fi
236240
fi

src/abi/Layout.idr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,15 @@ instructionCrossPlatform = InvariantProof
242242
public export
243243
verifyAlignment : (p : Platform) -> (t : Type) ->
244244
HasAlignment t n -> So (n `mod` (ptrSize p `div` 8) == 0)
245+
-- PROOF_TODO: Replace believe_me with actual proof
245246
verifyAlignment Linux t (AlignProof {n}) = believe_me Oh
247+
-- PROOF_TODO: Replace believe_me with actual proof
246248
verifyAlignment Windows t (AlignProof {n}) = believe_me Oh
249+
-- PROOF_TODO: Replace believe_me with actual proof
247250
verifyAlignment MacOS t (AlignProof {n}) = believe_me Oh
251+
-- PROOF_TODO: Replace believe_me with actual proof
248252
verifyAlignment BSD t (AlignProof {n}) = believe_me Oh
253+
-- PROOF_TODO: Replace believe_me with actual proof
249254
verifyAlignment WASM t (AlignProof {n}) = believe_me Oh
250255

251256
||| ProgramState alignment is valid on all platforms
@@ -277,6 +282,7 @@ alignedSize size align =
277282
public export
278283
alignedSizeCorrect : (size : Nat) -> (align : Nat) -> {auto 0 nonZero : So (align /= 0)} ->
279284
So (alignedSize size align `mod` align == 0)
285+
-- PROOF_TODO: Replace believe_me with actual proof
280286
alignedSizeCorrect size align = believe_me Oh
281287

282288
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)