You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch from fmt.Sprintf to json-iterator json creation method.
Why
CodeQL reported about a set of potentially vulnerable places in the code where json is compiled using fmt.Sprintf. The most concerning parts are already replaced. We have to refactor the rest.
How
Find all the functions where json is created using fmt.Sprintf and enumerate them.
What
Switch from
fmt.Sprintf
tojson-iterator
json creation method.Why
CodeQL reported about a set of potentially vulnerable places in the code where json is compiled using
fmt.Sprintf
. The most concerning parts are already replaced. We have to refactor the rest.How
json-iterator
library as it is done here: https://github.com/metrico/qryn/blob/gigapipe/reader/service/queryRangeService.go#L226-L324The text was updated successfully, but these errors were encountered: