rstemmer / libprinthex Goto Github PK
View Code? Open in Web Editor NEW๐ง A library to print a buffer as typical hex-view with highlighted regions on the console screen.
License: GNU General Public License v3.0
๐ง A library to print a buffer as typical hex-view with highlighted regions on the console screen.
License: GNU General Public License v3.0
The output from the test.sh:
The output is reproducible by building the docker image
docker build . -t showdump
using the following Dockerfile:
FROM ubuntu:latest
RUN apt-get update && apt-get install -y clang git libz-dev
RUN git clone https://github.com/rstemmer/libprinthex.git
RUN cd libprinthex && ./build.sh && ./install.sh
WORKDIR /libprinthex
CMD [ "bash", "./test.sh" ]
and running it:
docker run showdump
Currently I still call gcc in the build.sh script.
This should be changed to clang (LLVM is the future).
When using clang, I get the following warnings: (one more reason to use clang ;) )
printhex.c:76:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(color);
^~~~~
printhex.c:76:20: note: treat the string as an argument to avoid this
printf(color);
^
"%s",
printhex.c:81:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(color);
^~~~~
printhex.c:81:20: note: treat the string as an argument to avoid this
printf(color);
^
"%s",
2 warnings generated.
These should be fixed as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.