Compare commits

..

1 Commits

Author SHA1 Message Date
872b2bfeac fix: address PR #98 review feedback
All checks were successful
CI Code / Check spelling (pull_request) Successful in 20s
CI Code / Check coding style (pull_request) Successful in 34s
CI Code / Code Coverage (pull_request) Successful in 4m49s
CI Code / Linux (debian) (pull_request) Successful in 6m17s
CI Code / Linux (ubuntu) (pull_request) Successful in 6m18s
CI Code / Linux (arch) (pull_request) Successful in 6m33s
- check-cwe134.sh: match gchar* in addition to char* in variadic pattern
- rosterwin.c: merge duplicated if/else into single condition
- omemo.c: remove unnecessary scope block and goto, use early return
2026-03-07 13:26:01 +03:00

View File

@@ -75,10 +75,10 @@ KNOWN_RE=$(IFS="|"; echo "${REQUIRED_ATTRIBUTED[*]}")
# Find variadic declarations with a const char* / gchar* parameter followed by ...)
# that do NOT have a format attribute on the preceding line
NEW_ISSUES=$(grep -B1 -rn --include="*.h" \
-E '(const char|const gchar)\s*\*.*,\s*\.\.\.\)' "$DIR" 2>/dev/null \
-E '(const g?char)\s*\*.*,\s*\.\.\.\)' "$DIR" 2>/dev/null \
| awk '
/format\(printf|G_GNUC_PRINTF/ { skip=1; next }
/const char.*,.*\.\.\.\)/ {
/const g?char.*,.*\.\.\.\)/ {
if (skip) { skip=0; next }
print
}