Object form of JsonML causes crash
Bug #998757 reported by
William Candillon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Undecided
|
Paul J. Lucas |
Bug Description
The following query:
import module namespace json = "http://
let $opt := <options xmlns="http://
let $json := '{"name": "msg", "args": ["<div>
return
json:parse($json, $opt)
Returns:
<?xml version="1.0" encoding="UTF-8"?>
Zorba Internal Fatal Error in /Users/
"!ns.empty() || prefix.empty()": condition failed: prefix = <div><span>
Abort trap: 6
Example:
http://
Related branches
lp:~paul-lucas/zorba/bug-998757
- William Candillon: Approve
- Paul J. Lucas: Approve
-
Diff: 107 lines (+32/-0)8 files modifiedinclude/zorba/pregenerated/diagnostic_list.h (+2/-0)
modules/com/zorba-xquery/www/modules/pregenerated/errors.xq (+4/-0)
src/diagnostics/diagnostic_en.xml (+3/-0)
src/diagnostics/pregenerated/diagnostic_list.cpp (+3/-0)
src/diagnostics/pregenerated/dict_en.cpp (+1/-0)
src/runtime/json/jsonml_array.cpp (+4/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-07.spec (+1/-0)
test/rbkt/Queries/zorba/json/json-jsonml_array-parse-07.xq (+14/-0)
Changed in zorba: | |
milestone: | none → 2.5 |
assignee: | nobody → Paul J. Lucas (paul-lucas) |
summary: |
- JSON Module crash + Object form of JsonML causes crash |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FYI: Your JsonML is illegal. Zorba supports only the array form of JsonML. There's still a bug in that I didn't detect this, but that's easy to fix. The correct result should be an error.