jq icon indicating copy to clipboard operation
jq copied to clipboard

Crash

Open ololoe opened this issue 6 years ago • 5 comments

jq . jq_crash.json > nul

Segfault

jq_crash.json: []\x16 hex: 5b5d16

Environment (please complete the following information):

  • Windows XP
  • jq-1.6

ololoe avatar May 13 '19 19:05 ololoe

I can't reproduce this using the jq version 1.6 win64 executable from the releases page on Windows 10. I don't have Windows XP on hand to test with...

nicowilliams avatar May 13 '19 21:05 nicowilliams

Crash confirmed on Windows 7 x64 with jq 1.6 (C:\msys2\mingw64\bin\jq.exe). But the crash is not caused by the file, but by the redirection.

Original file:
Syntactically correct file (without \x16):

bit2shift avatar May 28 '19 19:05 bit2shift

This seem to be fine on windows 10 64 bit. Would you fix it for older Windows versions, or 32 bit (don't know what's the cause of the bug)?

ololoe avatar Jan 30 '21 13:01 ololoe

Possibly related to #1180 and already fixed by 87594f81d6f63556f2644fff4ed493aaac97974c.

itchyny avatar Jan 30 '21 14:01 itchyny

@itchyny In what version is it fixed?

ololoe avatar May 17 '22 15:05 ololoe

1.7 is released.

itchyny avatar Sep 08 '23 21:09 itchyny