activeInputGuard returns the package-level guard, lazily instantiated with the most recently configured logger (or a no-op when nothing was wired). Used by the Guarded* wrappers below.
()
| 38 | // with the most recently configured logger (or a no-op when nothing was |
| 39 | // wired). Used by the Guarded* wrappers below. |
| 40 | func activeInputGuard() *InputGuard { |
| 41 | if promptInputGuard == nil { |
| 42 | promptInputGuard = NewInputGuard(promptInputGuardLogger) |
| 43 | } |
| 44 | return promptInputGuard |
| 45 | } |
| 46 | |
| 47 | // PromptSecurityCheckGuarded wraps PromptSecurityCheck with the |
| 48 | // typeahead defense layers from InputGuard: kernel TTY flush, channel |
no test coverage detected