Skip to content

Commit

Permalink
Fix printf warnings for cran
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 4, 2023
1 parent 7076707 commit 104d09d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: jsonlite
Version: 1.8.8
Version: 1.8.9
Title: A Simple and Robust JSON Parser and Generator for R
License: MIT + file LICENSE
Depends: methods
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.8.9
- Fix printf warnings for cran

1.8.8
- Apply libyajl patches for CVE-2022-24795, CVE-2022-24795, CVE-2023-33460

Expand Down
2 changes: 1 addition & 1 deletion src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SEXP R_parse(SEXP x, SEXP bigint_as_char) {

/* parser error */
if (!node) {
Rf_errorcall(R_NilValue, errbuf);
Rf_errorcall(R_NilValue, "%s" errbuf);
}
SEXP out = ParseValue(node, bigint);
yajl_tree_free(node);
Expand Down
2 changes: 1 addition & 1 deletion src/push_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ SEXP R_parse_connection(SEXP sConn, SEXP bigint_as_char){
strncpy(errbuf, (char *) errstr, bufsize - 1);
yajl_free_error(push_parser, errstr);
yajl_free(push_parser);
Rf_error(errbuf);
Rf_error("%s", errbuf);
}

0 comments on commit 104d09d

Please sign in to comment.