Comments (5)
Hey, Doug, you're my hero of the day!
Thank you so much. Your approach to stick with signed chars and deal with the fallout is far superior to anything else.
from detox.
Thanks. I've noticed similar warnings from Clang (on Travis) and CLion. I'll address this in an upcoming release.
Unfortunately, most of the standard C functions take signed chars as their inputs, and the character transliteration logic in detox needs unsigned chars to work properly.
The code works with the implicit casts; I'll probably go with explicit casts in the v1 series and introduce more breaking changes in a major release.
from detox.
Yeah, this is big, and potentially breaking. I'll address it in v2.0.0.
from detox.
I feel with you.
My C brain is rusty at best, but maybe a set of wrapper macros/functions for the standard c functions with the correct casts in place would be the shortest path to success.
from detox.
Thanks @frispete ! I looked at your suggestion of creating wrappers around the standard C library, too, but ended up going with this approach when I realized it was only one of the filters that was failing, and I could fix it easily.
I also incorporated some of the gcc flags I saw from your output, adding protections against overflows and overruns. I like those a lot.
Thank you very much for the push in the right direction!
from detox.
Related Issues (20)
- utf_8 filter converts spaces to underscores HOT 1
- Compiling error on windows 10 HOT 4
- Im not sure why the man pages are confusing me so much HOT 3
- simple example for converting an ofending char to custom string HOT 1
- Compilation under Windows with MSYS2 fails
- Value too large for defined data type HOT 6
- configure.ac: warnings with autoconf >= 2.70 HOT 3
- Released tarballs are missing CHANGELOG and LICENSE and THANKS Files HOT 3
- Is there a way to pass a custom TBL file to a filter, e.g. `safe` HOT 3
- inline-detox – segmentation fault
- Is `utf_8-only` doing more stuff (converting e.g. brackets) than it is needed? HOT 1
- How can I delete certain characters instead of replacing them? HOT 4
- Not replacing space eats the next character HOT 1
- Operate on std-in list of names and generate list out names on std-out HOT 1
- Compiling under CircleCI is broken HOT 1
- How to ignore Icon␍ macOS files? HOT 3
- Ignore folders? HOT 3
- double free or corruption (out) when using custom sequence
- Is it possible to replace characters and remove punctuation (i.e. parentheses, braces etc.) in one detox command? HOT 1
- Please provide a way to retain German Umlaute ÄÜÖäüö 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 detox.