← Back to context

Comment by kazinator

4 days ago

You've used GPL2 code taken from git (hashmap.c) in your Apache 2.0 project.

https://opensource.stackexchange.com/questions/10737/inclusi...

I'm curious, how did you notice this?

Do you have a scanner that checks these sorts of things or is it something that you are passionate about?

  • By the following very short garden path:

    1. How silly to write such a thing in C from scratch. Such a project will invariably invent half of Lisp in order to have the right kind of infrastructure for doing this and that.

    2. Let's look for some of it up and down the tree. Oh look, there is a bitset and hashmap, see? I don't see test cases for these anywhere; is it original work from this project or battle-tested code taken from elsewhere?

    3. Open hashmap.c ...

    GPL violation found in half a minute.