Skip to content

Commit 3922392

Browse files
Jonathan D.A. Jewellclaude
andcommitted
fix: apply safety triangle fixes (recipe-remove-believe-me,recipe-shell-quote-vars)
Auto-applied by hypatia dispatch-runner via gitbot-fleet. 7 file(s) modified. Recipes: recipe-remove-believe-me,recipe-shell-quote-vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b6b9bda commit 3922392

7 files changed

Lines changed: 11 additions & 6 deletions

File tree

plugin-conflict-mapper/bin/install-wp-tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WP_VERSION=${5-latest}
1515
SKIP_DB_CREATE=${6-false}
1616

1717
TMPDIR=${TMPDIR-/tmp}
18-
TMPDIR=$(echo $TMPDIR | sed -e "s/\/$//")
18+
TMPDIR=$(echo "$TMPDIR" | sed -e "s/\/$//")
1919
WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib}
2020
WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/}
2121

@@ -67,7 +67,7 @@ install_wp() {
6767
mkdir -p $TMPDIR/wordpress-nightly
6868
download https://wordpress.org/nightly-builds/wordpress-latest.zip $TMPDIR/wordpress-nightly/wordpress-nightly.zip
6969
unzip -q $TMPDIR/wordpress-nightly/wordpress-nightly.zip -d $TMPDIR/wordpress-nightly/
70-
mv $TMPDIR/wordpress-nightly/wordpress/* $WP_CORE_DIR
70+
mv "$TMPDIR"/wordpress-nightly/wordpress/* $WP_CORE_DIR
7171
else
7272
if [ $WP_VERSION == 'latest' ]; then
7373
local ARCHIVE_NAME='latest'
@@ -79,7 +79,7 @@ install_wp() {
7979
LATEST_VERSION=${WP_VERSION%??}
8080
else
8181
# otherwise, scan the releases and get the most up to date minor version of the major release
82-
local VERSION_ESCAPED=`echo $WP_VERSION | sed 's/\./\\\\./g'`
82+
local VERSION_ESCAPED=`echo "$WP_VERSION" | sed 's/\./\\\\./g'`
8383
LATEST_VERSION=$(grep -o '"version":"'$VERSION_ESCAPED'[^"]*' $TMPDIR/wp-latest.json | sed 's/"version":"//' | head -1)
8484
fi
8585
if [[ -z "$LATEST_VERSION" ]]; then
@@ -116,7 +116,7 @@ install_test_suite() {
116116
if [ ! -f wp-tests-config.php ]; then
117117
download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php
118118
# remove all forward slashes in the end
119-
WP_CORE_DIR=$(echo $WP_CORE_DIR | sed "s:/\+$::")
119+
WP_CORE_DIR=$(echo "$WP_CORE_DIR" | sed "s:/\+$::")
120120
sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php
121121
sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php
122122
sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
@@ -139,7 +139,7 @@ install_db() {
139139
local EXTRA=""
140140

141141
if ! [ -z $DB_HOSTNAME ] ; then
142-
if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then
142+
if [ $(echo "$DB_SOCK_OR_PORT" | grep -e '^[0-9]\{1,\}$') ]; then
143143
EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp"
144144
elif ! [ -z $DB_SOCK_OR_PORT ] ; then
145145
EXTRA=" --socket=$DB_SOCK_OR_PORT"

plugin-conflict-mapper/src/abi/Foreign.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ prim__registerCallback : Bits64 -> AnyPtr -> PrimIO Bits32
189189
export
190190
registerCallback : Handle -> Callback -> IO (Either Result ())
191191
registerCallback h cb = do
192+
-- PROOF_TODO: Replace believe_me with actual proof
192193
result <- primIO (prim__registerCallback (handlePtr h) (believe_me cb))
193194
pure $ case resultFromInt result of
194195
Just Ok => Right ()

praxis/src/abi/Foreign.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ prim__registerCallback : Bits64 -> AnyPtr -> PrimIO Bits32
189189
export
190190
registerCallback : Handle -> Callback -> IO (Either Result ())
191191
registerCallback h cb = do
192+
-- PROOF_TODO: Replace believe_me with actual proof
192193
result <- primIO (prim__registerCallback (handlePtr h) (believe_me cb))
193194
pure $ case resultFromInt result of
194195
Just Ok => Right ()

resurrect/src/abi/Foreign.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ prim__registerCallback : Bits64 -> AnyPtr -> PrimIO Bits32
189189
export
190190
registerCallback : Handle -> Callback -> IO (Either Result ())
191191
registerCallback h cb = do
192+
-- PROOF_TODO: Replace believe_me with actual proof
192193
result <- primIO (prim__registerCallback (handlePtr h) (believe_me cb))
193194
pure $ case resultFromInt result of
194195
Just Ok => Right ()

secured/src/abi/Foreign.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ prim__registerCallback : Bits64 -> AnyPtr -> PrimIO Bits32
189189
export
190190
registerCallback : Handle -> Callback -> IO (Either Result ())
191191
registerCallback h cb = do
192+
-- PROOF_TODO: Replace believe_me with actual proof
192193
result <- primIO (prim__registerCallback (handlePtr h) (believe_me cb))
193194
pure $ case resultFromInt result of
194195
Just Ok => Right ()

sinople-theme/.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/sinople-journal-theme
3+
cd "$SRC"/sinople-journal-theme
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/

sinople-theme/src/abi/Foreign.idr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ prim__registerCallback : Bits64 -> AnyPtr -> PrimIO Bits32
189189
export
190190
registerCallback : Handle -> Callback -> IO (Either Result ())
191191
registerCallback h cb = do
192+
-- PROOF_TODO: Replace believe_me with actual proof
192193
result <- primIO (prim__registerCallback (handlePtr h) (believe_me cb))
193194
pure $ case resultFromInt result of
194195
Just Ok => Right ()

0 commit comments

Comments
 (0)