projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8bd221
)
Quick sniff test to find leaked global variables.
author
Rob Landley
<rob@landley.net>
Fri, 26 Apr 2013 06:46:03 +0000
(
01:46
-0500)
committer
Rob Landley
<rob@landley.net>
Fri, 26 Apr 2013 06:46:03 +0000
(
01:46
-0500)
scripts/findglobals.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/findglobals.sh
b/scripts/findglobals.sh
new file mode 100755
(executable)
index 0000000..
2c63164
--- /dev/null
+++ b/
scripts/findglobals.sh
@@ -0,0
+1,6
@@
+#!/bin/bash
+
+# Quick and dirty check to see if anybody's leaked global variables.
+# We should have this, toy_list, toybuf, and toys.
+
+nm toybox_unstripped | grep '[0-9A-Fa-f]* [BCDGRS]' | cut -d ' ' -f 3