Coder Social home page Coder Social logo

Comments (5)

d4ndo avatar d4ndo commented on June 29, 2024

What are you doing? Looks like a »null byte injection« ;)
I'm not sure, if the NULL byte is supported by the qrcode specification.

from libqrencode.

ysangkok avatar ysangkok commented on June 29, 2024

@d4ndo : See the section "Encoding a string/data" on http://fukuchi.org/works/qrencode/manual/index.html . As you can see, the library supports NULL bytes, but the command-line tool doesn't.

from libqrencode.

fukuchi avatar fukuchi commented on June 29, 2024

Hi @ysangkok,

Current implementation of the command line tool does not support NULL byte because it only accept data input via standard input. When I started to develop it, I did not think binary data including NULL will be used.

I think it is not so difficult to support it. Please wait for a couple of week, or patches are welcome.

from libqrencode.

d4ndo avatar d4ndo commented on June 29, 2024

Some additional information:
Using the 8bit mode worked out. It did not return an error. But I'm not sure if the output »qrcode« is correct.

$ echo -en "\x00" | qrencode -8 -t PNG -o lol.png

from libqrencode.

fukuchi avatar fukuchi commented on June 29, 2024

Gee, I completely forgot that we already fixed the problem by a0e1dfb

@ysangok, please follow @d4ndo 's instruction. Thank you, @d4ndo.

from libqrencode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.