Safe to open P-code files?
Show older comments
Hi,
My question and concern is that I have purchased some .p and .m files from a MATLAB software developer. I would like to know what risks I assume by opening the files, especially the .p files that I cannot review to ensure safe operation (risks such as spreading a fatal virus to my employer's entire network, etc). My limited research on p-coded files explained that no one except those who have purchased the rights to view source code (million dollar rights) from MathWorks will be able to open or view the .p files. Are there any tools in addition to requiredFilesandProducts that I can use to determine a threat? Or is author trust the ultimate answer?
Thanks in advance.
3 Comments
dpb
on 20 Dec 2016
It's pretty-much the latter; which sorta' begs the question of why would you buy from a vendor you don't trust?
Guess you could start by using a workstation totally isolated from the rest of the network if you think there's really somesuch possibility, even.
Walter Roberson
on 20 Dec 2016
The original source file of .p files is discarded. There is, though, still information about variable names. It seems likely to me that somewhere along the way that Mathworks wrote a "decompile" tool for .p files that would produce some version of source from a .p file. But that is speculation.
Accepted Answer
More Answers (1)
David Barry
on 20 Dec 2016
Edited: David Barry
on 20 Dec 2016
0 votes
Yes author trust is the ultimate answer. If you don't trust them then why work with them? Alternatively you should have stated in your terms and conditions with said supplier that you want open access to all source code. p-code is a way for people to obfuscate intellectual property not distribute viruses.
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!