View Issue Details

IDProjectCategoryView StatusLast Update
0000327fileGeneralpublic2022-03-21 21:24
Reportervinc17 Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.41 
Fixed in VersionHEAD 
Summary0000327: fails to detect a json file as JSON data
Descriptionfile 5.41 fails to detect the attached json file as JSON data.
Steps To Reproduce$ file Q3235109.json
Q3235109.json: ASCII text, with very long lines (2409), with no line terminators

And with the -d option, I can see: "[try json 0]".
Additional InformationThe json_pp utility doesn't detect any issue on this file.
TagsNo tags attached.

Activities

vinc17

2022-03-15 00:28

reporter  

Q3235109.json (2,409 bytes)

polluks

2022-03-21 14:04

reporter   ~0003711

By the way "cc -DTEST is_json.c" and "cc -DTEST is_tar.c" are broken, "cc -DTEST is_csv.c" still works.

polluks

2022-03-21 14:19

reporter   ~0003712

--- is_json.c.bak 2022-03-21 15:13:15.933289900 +0100
+++ is_json.c 2022-03-21 15:14:48.814366000 +0100
@@ -37,6 +37,8 @@

 #include <string.h>
 #include "magic.h"
+#else
+#include <stddef.h>
 #endif

 #ifdef DEBUG

christos

2022-03-21 21:24

manager   ~0003715

Bumped recursion limit.

Issue History

Date Modified Username Field Change
2022-03-15 00:28 vinc17 New Issue
2022-03-15 00:28 vinc17 File Added: Q3235109.json
2022-03-21 14:04 polluks Note Added: 0003711
2022-03-21 14:19 polluks Note Added: 0003712
2022-03-21 21:24 christos Assigned To => christos
2022-03-21 21:24 christos Status new => assigned
2022-03-21 21:24 christos Status assigned => resolved
2022-03-21 21:24 christos Resolution open => fixed
2022-03-21 21:24 christos Fixed in Version => HEAD
2022-03-21 21:24 christos Note Added: 0003715