I was forwarded this link yesterday and it contains very good information about the legal ramifications of reverse engineering. It isn't meant to scare anyone but if you live in the US and your are thinking about publishing your work give it a read.
Coders’ Rights Project Reverse Engineering FAQ | Electronic Frontier Foundation