Files
jq/src
Emanuele Torre e79335e3a5 Initialise jq_state->input_cb{,_data} to NULL in jq_init()
To avoid causing segmentation faults when  input/1  is called in a
jq_state on which  jq_set_input_cb()  has not been called; e.g. the one
used by  jq --run-tests.

That segfault could also be fixed in run_jq_tests() by calling:

  jq_set_input_cb(jq, NULL, NULL);

But I think it makes sense to just make jq_init() initialise those
values to NULL.

Ref: https://github.com/jqlang/jq/pull/2717#discussion_r1264338841
2023-07-16 00:03:46 -05:00
..
2015-08-23 20:36:11 -07:00
2023-07-14 00:17:42 +02:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2020-01-14 10:18:22 -06:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2020-12-19 15:18:29 -05:00
2015-08-23 20:36:11 -07:00
2015-08-23 20:36:11 -07:00
2023-07-14 13:39:21 +02:00
2018-08-17 23:15:48 -04:00
2020-01-10 12:01:08 -06:00
2015-08-23 20:36:11 -07:00