The getTableCount method used fmt.Sprintf to interpolate a table name directly into a SQL query. While currently only called with hardcoded names, this is a dangerous pattern. Added an allowlist of valid table names and return an error for unrecognized names. |
||
|---|---|---|
| .. | ||
| helpers.go | ||
| info.go | ||
| integration_test.go | ||
| prune.go | ||
| restore.go | ||
| snapshot.go | ||
| vaultik.go | ||
| verify.go | ||