Opened 5 years ago
Closed 4 years ago
#60363 closed defect (fixed)
jq segfaults on regex because of old oniguruma version
Reported by: | bgdnlp (Bogdan Luput) | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: | jq oniguruma5 |
Description
When matching a REGEX in jq it crashes with a segfault if expressions like ".*" are used on long strings. That's because of a bug in the Oniguruma library it uses, which was fixed.
Here's the jq Github issue: https://github.com/stedolan/jq/issues/1370
Here's the corresponding Oniguruma pull request that fixes the problem: https://github.com/kkos/oniguruma/pull/51
jq version 1.6 downloaded from the jq website works with no issues.
Change History (4)
comment:1 Changed 5 years ago by bgdnlp (Bogdan Luput)
Type: | defect → update |
---|
comment:2 Changed 5 years ago by jmroot (Joshua Root)
Owner: | set to raimue |
---|---|
Port: | oniguruma5 added |
Status: | new → assigned |
Type: | update → defect |
comment:3 Changed 5 years ago by raimue (Rainer Müller)
comment:4 Changed 4 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Hm, looks like this was never fixed on the oniguruma 5.x branch and only made its way into v6.x tags as indicated by GitHub for the corresponding commit. I guess the best option would be to use the oniguruma6 port. However, this will cause a disruption for users and will not have a straight update path as the ports are conflicting.
PR: https://github.com/macports/macports-ports/pull/7024
Let's see if anyone else can come up with a better idea, otherwise I will just merge this and everyone will have to uninstall oniguruma5 first.