Comments (7)
Feels like unsigned char
somewhere:
; echo -e 'a = %x00-7F' | ./build/bin/kgt -l abnf -e rrtext
a:
||--v-- "\x00" -->--||
| |
| : |
| |
`-- "\x7f" --'
; echo -e 'a = %x00-80' | ./build/bin/kgt -l abnf -e rrtext
a:
malloc: Cannot allocate memory
;
from kgt.
; echo -e 'a = %x00-80' | ./build/bin/kgt -l abnf -e rrtdump
a: (before prettify)
VLIST w=12 a=0 d=4294967295 o=0: [
HLIST w=6 a=0 d=4294967295: [
VLIST w=6 a=0 d=4294967295 o=0: [
]
]
]
from kgt.
; echo -e 'a = %x00-80' | ./build/bin/kgt -l abnf -e rrdump
a: (before prettify)
ALT: [
SEQ: [
ALT: [
]
]
]
from kgt.
The %x80
case fixed here: 545aeb9
That still leaves the %xFF
case, which probably overflows to 0.
from kgt.
; echo -e 'a = %xFE-FF' | ./build/bin/kgt -l abnf -e rrtdump
a: (before prettify)
VLIST w=18 a=0 d=3 o=0: [
HLIST w=12 a=0 d=3: [
VLIST w=12 a=0 d=3 o=0: [
HLIST w=6 a=0 d=1: [
zsh: done echo -e 'a = %xFE-FF' |
zsh: segmentation fault ./build/bin/kgt -l abnf -e rrtdump
from kgt.
Overflow at end of range fixed here: 505bf5b
from kgt.
Merged in #21
from kgt.
Related Issues (20)
- Implement # for ABNF
- Feature Request: Configurable production rule separator
- Feature Request: Configurable "equality" symbol in production rule HOT 3
- error: implicit declaration of function 'strdup' during installation HOT 1
- Exponential grow for case insensitive input. HOT 3
- Stop using exit(EXIT_FAILURE) HOT 6
- Feature request: add language from the "Railroad-diagram Generator" HOT 1
- How can I readably display the man page - on Linux? HOT 2
- Makefile for man/kgt.1/kgt.1 HOT 1
- ABNF: silently chokes on dhall.abnf HOT 5
- Makefile, needed to create directories HOT 17
- Compilation instructions. HOT 3
- Is ABNF supported? HOT 3
- ABNF > Blab - Core rules not exported HOT 1
- Blab output - grouping is not perserved HOT 2
- examples/ebnf2.ebnf not parsed as iso-ebnf
- Segfault in `collapse_suffix` HOT 2
- Build fails with recent bmake HOT 1
- Completion of error handling HOT 2
- Text output for Model 33 ASR teletypes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kgt.