# jq jq-1.7.1 — jq 1.7.1 - Product: jq (https://whatsnew.fyi/product/jq) - Vendor: jq - Date: 2023-12-13 - Version: jq-1.7.1 - Original notes: https://github.com/jqlang/jq/releases/tag/jq-1.7.1 - Permalink: https://whatsnew.fyi/product/jq/releases/jq-1.7.1 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- Changes to check: - **Behavior changed:** `U+001F` (inferred by a model) - **Behavior changed:** `decnum` (inferred by a model) - **security** — Fix heap buffer overflow in jvp_literal_number_literal (CVE-2023-50246) - **security** — Fix stack-buffer-overflow if comparing nan with payload (CVE-2023-50268) - **changed** — Make the default background color more suitable for bright backgrounds - **added** — Allow passing the inline jq script after -- - **changed** — Restrict systems operations on OpenBSD and remove unused mkstemp - **fixed** — Fix possible uninitialised value dereference if jq_init() fails - **changed** — Simplify paths/0 and paths/1 - **changed** — Reject U+001F in string literals - **changed** — Convert decnum to binary64 (double) instead of decimal64 to behave like the JSON specification suggests - **fixed** — Fix memory leaks on invalid input for ltrimstr/1 and rtrimstr/1 - **fixed** — Fix memory leak on failed get for setpath/2 - **fixed** — Fix nan from json parsing also for nans with payload that start with 'n' - **changed** — Allow carriage return characters in comments - **added** — Add extern C for C++ in libjq - **fixed** — Actually use the number correctly casted from double to int as index - **fixed** — Remove undefined behavior caught by LLVM 10 UBSAN ##### Security - CVE-2023-50246: Fix heap buffer overflow in jvp\_literal\_number\_literal - CVE-2023-50268: fix stack-buffer-overflow if comparing nan with payload ##### CLI changes - Make the default background color more suitable for bright backgrounds. @mjarosie @taoky @nicowilliams @itchyny #2904 - Allow passing the inline jq script after `--`. @emanuele6 #2919 - Restrict systems operations on OpenBSD and remove unused `mkstemp`. @klemensn #2934 - Fix possible uninitialised value dereference if `jq_init()` fails. @emanuele6 @nicowilliams #2935 ##### Language changes - Simplify `paths/0` and `paths/1`. @asheiduk @emanuele6 #2946 - Reject `U+001F` in string literals. @torsten-schenk @itchyny @wader #2911 - Remove unused nref accumulator in `block_bind_library`. @emanuele6 #2914 - Remove a bunch of unused variables, and useless assignments. @emanuele6 #2914 - main.c: Remove unused EXIT\_STATUS\_EXACT option. @emanuele6 #2915 - Actually use the number correctly casted from double to int as index. @emanuele6 #2916 - src/builtin.c: remove unnecessary jv\_copy-s in type\_error/type\_error2. @emanuele6 #2937 - Remove undefined behavior caught by LLVM 10 UBSAN. @Gaelan @emanuele6 #2926 - Convert decnum to binary64 (double) instead of decimal64. This makes jq behave like the JSON specification suggests and more similar to other languages. @wader @leonid-s-usov #2949 - Fix memory leaks on invalid input for `ltrimstr/1` and `rtrimstr/1`. @emanuele6 #2977 - Fix memory leak on failed get for `setpath/2`. @emanuele6 #2970 - Fix nan from json parsing also for nans with payload that start with 'n'. @emanuele6 #2985 - Allow carriage return characters in comments. @emanuele6 #2942 #2984 ##### Documentation changes - Generate links in the man page. @emanuele6 #2931 - Standardize arch types to AMD64 & ARM64 from index page download dropdown. @owenthereal #2884 ##### libjq - Add extern C for C++. @rockwotj #2953 ##### Build and test changes - Fix incorrect syntax for checksum file. @kamontat @wader #2899 - Remove `-dirty` version suffix for windows release build. @itchyny #2888 - Make use of `od` in tests more compatible. @nabijaczleweli @emanuele6 @nicowilliams #2922 - Add dependabot. @yeikel #2889 - Extend fuzzing setup to fuzz parser and and JSON serializer. @DavidKorczynski @emanuele6 #2952 - Keep releasing executables with legacy names. @itchyny #2951 ##### New Contributors * @yeikel made their first contribution in https://github.com/jqlang/jq/pull/2889 * @dependabot made their first contribution in https://github.com/jqlang/jq/pull/2894 * @kamontat made their first contribution in https://github.com/jqlang/jq/pull/2899 * @taoky made their first contribution in https://github.com/jqlang/jq/pull/2904 * @tboz203 made their first contribution in https://github.com/jqlang/jq/pull/2920 * @nabijaczleweli made their first contribution in https://github.com/jqlang/jq/pull/2922 * @klemensn made their first contribution in https://github.com/jqlang/jq/pull/2934 * @asheiduk made their first contribution in https://github.com/jqlang/jq/pull/2946 * @rockwotj made their first contribution in https://github.com/jqlang/jq/pull/2953 * @jesperronn made their first contribution in https://github.com/jqlang/jq/pull/2898 **Full Changelog**: https://github.com/jqlang/jq/compare/jq-1.7...jq-1.7.1