6

Few weeks ago, I started reverse engineering libraries and binaries from a commercial copyrighted product (a game). And, I would like to post the code on an open source platform like GitHub.

I've searched a lot on the Internet, and found that in some cases it was legal to share the reversed-material, and in other cases illegal.

Is it legal to post reverse-engineered code from a copyrighted product on an open source platform?

6
  • no it is not legal to attach the brand of that product with the slice of code, do it as unknown-sourced, besides it is suited to post such issues on meta
    – Abr001am
    Aug 30, 2016 at 14:17
  • 1
    So what do you mean with "post the code...on github"? Push it to a private repo for your own usage or really share it in a public repo? If it's the latter one, I am pretty sure it is not legal.
    – knx
    Aug 30, 2016 at 14:21
  • @avo18 pay attention to spoil the product brand and version while posting a piece of reversed code from a copyrighted source, that might get u in trouble with the publisher and it can persue the community also
    – Abr001am
    Aug 30, 2016 at 14:26
  • Thank you for the fast answers ;) I will do it for my own use.
    – Avo18
    Aug 30, 2016 at 16:21
  • 1
    Depends on what country you live in. Aug 31, 2016 at 8:22

1 Answer 1

4

Disclaimer: IANAL. Usually the answer is “it depends.” Are you creating a derivative commercial game? Probably it is not so legal. Are you doing that to be “compatible” with that game? It's legal. Are you just researching the internals of the game? It's legal.

For example: I know people who ported game engines by reverse engineering and even copying parts by decompilation & adaptation and, except when they tried to distribute copyrighted things (libraries, graphics, etc…), it was considered legal. Also, please remember that if you're using, say, SAMBA in MacOSX/Linux or Open/LibreOffice, you're actually using code that was reverse engineered from their commercial counterparts and published in open source codes.

In short: derivative products or anything with the aim of damaging a company or getting an economic benefit, is probably not so legal. Research, compatibility and porting is.

2
  • 3
    IANAL either. But reversing code to understand its workings/algorithms and then write your own implementation from scratch is surely different from publishing the reversed code itself.
    – JimmyB
    Aug 30, 2016 at 19:04
  • 1
    @JimmyB: I'd say it depends again. Usually there's something called "clean room RCE" in such a case. I.e. the reverse engineer is a different person than the implementer of the code. So taking LibreOffice as an example someone would RCE MS Office, document the effort and write specifications etc. Someone else would then take the documentation/specification and write new code based on that. Either way if LibreOffice outright copied the GUI of MS Office for example, I'm sure they'd be in trouble. But in this case the RCE was for interoperation.
    – 0xC0000022L
    Aug 31, 2016 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.