Skip to content
/ shc Public
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

Other PR's merged + code improved + flow improved #168

Open
wants to merge 101 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
9196b79
add -P option, to pass the script via pipe instead of command line
fabio-brugnara Jun 2, 2023
a0cbfd9
modified untraceable() to avoid occasional freeze with zombie
fabio-brugnara Jun 2, 2023
9c77773
add support for python*
fabio-brugnara Jun 2, 2023
6242bf5
initialize pipe flag to 0
fabio-brugnara Jun 5, 2023
6dc86a0
Fix script file names containing spaces and other special characters.
ergoucao Sep 7, 2023
defa47b
Fix files with linting & formatting tools + spelling correction
mdeweerd Jan 5, 2024
d23e9a9
minor: Fix spelling require->requires
mdeweerd Jan 5, 2024
c5736c3
Improve format hinting
mdeweerd Jan 5, 2024
37b7189
Make script executable
mdeweerd Jan 5, 2024
727c60e
add install procedure for Debian and Ubuntu systems in the README
lb803 Jan 25, 2024
a280a4d
reword the 'Ubuntu-specific' heading to make it more specific
lb803 Jan 25, 2024
8dec142
add code block hinting for the Ubuntu PPA install procedure
lb803 Jan 25, 2024
5a3eb51
Fix memory leaks in write_c and eval_shell
ashamedbit Jan 28, 2024
4bd412e
Remove ash dependency
dviererbe Jul 16, 2024
c2c263a
ci: pre-commit & generate actions
mdeweerd Jan 5, 2024
6098fee
Spelling updates, regenerate man
mdeweerd Aug 11, 2024
72b3f92
Merge branch 'ci/precommit_generate' into memory-leak-fixes
mdeweerd Aug 11, 2024
26b90c7
Merge branch 'fix/linting' into integration/merge
mdeweerd Aug 11, 2024
dd622ea
Merge branch 'fix/spelling/man' into integration/merge
mdeweerd Aug 11, 2024
7a64c63
Merge branch 'pr157' into integration/merge
mdeweerd Aug 11, 2024
dc1a51c
Merge branch 'pr167' into integration/merge
mdeweerd Aug 11, 2024
80a813e
Merge branch 'pr164' into integration/merge
mdeweerd Aug 11, 2024
b37b159
Merge branch 'doc/format-hints' into integration/merge
mdeweerd Aug 11, 2024
3385b79
Add exceptions for test, and possibility to exclude cppchecks
mdeweerd Aug 11, 2024
6e5fe35
Exclude readability/casting because this is c-code
mdeweerd Aug 11, 2024
819b7ae
Ignore several external files for checks
mdeweerd Aug 11, 2024
dbbe389
Cleanup INSTALL
mdeweerd Aug 11, 2024
7791306
Cleanup .travis.yml
mdeweerd Aug 11, 2024
d62dd17
Add ci (replace travis)
mdeweerd Aug 11, 2024
53aad7e
ci: Github Action Generate Files
invalid-email-address Aug 11, 2024
684fa07
Fix cpplint/cppcheck
mdeweerd Aug 11, 2024
ab1b51d
Do test with sanitize on
mdeweerd Aug 11, 2024
a984bad
Do test with sanitize on
mdeweerd Aug 11, 2024
f9da88e
Also ignore Makefile.am for file formatting
mdeweerd Aug 11, 2024
52b7f6b
Sanitizer: stop the program when a leak is detected
mdeweerd Aug 11, 2024
9837b8d
Merge commit '52b7f6b' into integration/merge
mdeweerd Aug 11, 2024
be20a38
Avoid warning about not using the return value of setuid
mdeweerd Aug 11, 2024
7be5e33
Upgrade pandoc workflow
mdeweerd Aug 11, 2024
c61eb85
ci: Github Action Generate Files
invalid-email-address Aug 11, 2024
489e8dd
Add uncrustify configuration, apply it
mdeweerd Aug 12, 2024
ad89854
Merge branch 'integration/merge' of github.com:mdeweerd/shc into inte…
mdeweerd Aug 12, 2024
c067aff
Update executable bit for INSTALL
mdeweerd Aug 12, 2024
a1a4d20
Remove space after sizeof
mdeweerd Aug 12, 2024
7b6b7f5
Format code before merging
mdeweerd Aug 12, 2024
21e214e
Merge branch 'pr153' into integration/merge
mdeweerd Aug 12, 2024
7eee637
add test in ttest.sh for -P flag and python
fabio-brugnara Aug 12, 2024
b563090
Ignore developer name
mdeweerd Aug 12, 2024
d2cac42
Test pip & python
fabio-brugnara Aug 12, 2024
792260b
Allow skipping of tests
mdeweerd Aug 12, 2024
d233552
Fix memory leaks in generated program
mdeweerd Aug 12, 2024
60c86e0
Fix issue with flagging overflow
mdeweerd Aug 12, 2024
1e635da
Use unsigned to avoid runtime signed overflow notice & sprintf->snprintf
mdeweerd Aug 12, 2024
3871627
use unsigned in random generation to avoid sanitizer warning
fabio-brugnara Aug 12, 2024
ee754b8
add braces around break
fabio-brugnara Aug 12, 2024
9f3565a
Merge branch 'pr153' into integration/merge
mdeweerd Aug 13, 2024
714e922
add SHC_ARGV0 to environment
fabio-brugnara Aug 15, 2024
b3f9c99
added SHC_PID for safer handling of SHC_ARGV0
fabio-brugnara Aug 16, 2024
f4ff8e1
first partial draft of argv0 fix, only for *sh
fabio-brugnara Aug 16, 2024
6d4ebd0
Test $0 value
mdeweerd Aug 17, 2024
87f9485
second draft of argv0 fix, includes python, and put argv fix under op…
fabio-brugnara Aug 17, 2024
163b5f9
Add several test script to pre-commit checks
mdeweerd Aug 17, 2024
bd058ff
Duplicate strings before encryption to print unmangled args
mdeweerd Aug 17, 2024
219fbc3
Add flow (actions & test runs)
mdeweerd Aug 17, 2024
7ebbc2d
Merge branch 'argv0' of github.com:fabio-brugnara/shc into argv0
mdeweerd Aug 17, 2024
a834aa4
Disable sanitize run for fork evaluation
mdeweerd Aug 17, 2024
3d64ca3
Uncrustify before merge
mdeweerd Aug 17, 2024
1335cec
Uncrustify before merge
mdeweerd Aug 17, 2024
427259b
Merge branch 'argv0_with_pre' into argv0_test
mdeweerd Aug 17, 2024
b70a297
Set -0 option in tests
mdeweerd Aug 17, 2024
2dbcec6
Enable -0 option in tests
mdeweerd Aug 17, 2024
a2bc6ea
Enable -0 option in tests
mdeweerd Aug 17, 2024
997c3d0
fix typo in python3 DB
fabio-brugnara Aug 17, 2024
3f44476
add perl support (with -P forced)
fabio-brugnara Aug 17, 2024
729b1bd
Add shell name and option to test temporary path
mdeweerd Aug 17, 2024
52a17fc
Add shell name and option to test temporary path
mdeweerd Aug 17, 2024
accb0b8
Add timeout value to ci run
mdeweerd Aug 17, 2024
376a712
Add timeout value to ci run
mdeweerd Aug 17, 2024
e94567b
Fix timeout syntax & rename job
mdeweerd Aug 17, 2024
2d7abab
Extend tests with arguments with spaces and quotes, and fix tcsh and …
mdeweerd Aug 17, 2024
64c7824
fix sourcing of binary for *csh
fabio-brugnara Aug 18, 2024
de0a223
Solve $0 for zsh when using pipe
mdeweerd Aug 18, 2024
c649a87
Adjust test to not require forged $0 for rc and the pipe option
mdeweerd Aug 18, 2024
91ec8f9
fix minor oversight in shell list
fabio-brugnara Aug 18, 2024
3ed7c04
Merge branch 'argv0' into argv0_with_pre
mdeweerd Aug 18, 2024
aa84e8b
Merge branch 'argv0_with_pre' into argv0_test
mdeweerd Aug 18, 2024
e9ddf90
Remove temporary output for debug from ttest.sh
mdeweerd Aug 18, 2024
d713001
ci: Github Action Generate Files
invalid-email-address Aug 18, 2024
17b89be
Add dependabot configuration
mdeweerd Aug 18, 2024
521f8d4
Bump dorny/paths-filter from 2 to 3
dependabot[bot] Aug 18, 2024
be6edbe
Fix executable flag on generated files
mdeweerd Aug 18, 2024
ac0ca7a
Merge pull request #1 from mdeweerd/dependabot/github_actions/dorny/p…
mdeweerd Aug 18, 2024
cf91f8f
make forging of argv0 opt-out with -p, force -P for *csh
fabio-brugnara Aug 18, 2024
db31ddd
Change meaning of options -P -p. Added set of __file__ to python prea…
fabio-brugnara Aug 19, 2024
95bcb63
Update Changelog
mdeweerd Aug 19, 2024
ac7eccc
Merge branch 'argv0' into argv0_with_pre
mdeweerd Aug 19, 2024
9a9da5a
Merge branch 'argv0_with_pre' into integration/merge
mdeweerd Aug 19, 2024
aedbebe
Cleanup format of generated script
mdeweerd Aug 19, 2024
9ead41a
Extend tests to more options
mdeweerd Aug 19, 2024
85d658e
Update documentation
mdeweerd Aug 19, 2024
7b0337f
ci: Github Action Generate Files
invalid-email-address Aug 19, 2024
298b848
Avoid warning about unused return value of system() + doc
mdeweerd Aug 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add exceptions for test, and possibility to exclude cppchecks
mdeweerd committed Aug 11, 2024
commit 3385b79cd1335c0edab924c717234075c59bfee4
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
exclude:
(?x)^(
configure|
configure\..*|
.cache/.*
)$
@@ -47,7 +48,7 @@ repos:
rev: v6.2.1
hooks:
- id: beautysh
exclude: ^(test/.*)$
exclude: (?x)^(test/.*)$
additional_dependencies:
- setuptools
- repo: https://github.com/codespell-project/codespell
@@ -74,6 +75,7 @@ repos:
- --language=c
#- -IInc
- '--template={file}({line}): {severity} ({id}): {message}'
- --inline-suppr
- id: cpplint
args: ["--filter=-build/header_guard,-build/include,-build/include_subdir,-legal/copyright,-readbility/casting,-readability/fn_size,-whitespace/blank_line,-whitespace/braces,-whitespace/comma,-whitespace/comments,-whitespace/line_length,-whitespace/newline,-whitespace/operators,-whitespace/parens,-whitespace/semicolon,-whitespace/tab,-whitespace/todo"]
additional_dependencies:
@@ -82,6 +84,7 @@ repos:
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: (?x)^(test/.*)$
# args: [-x,-e1007,-e1009,-e1072,-e1073]
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5