I haven't run afoul of any laws, writing software, but I'm always tangling with copyright readers and software licenses whenever I start up a project (which happens every year or two). Open source licenses especially, since the standing rule is that 'copyleft is bad, because we want to keep control of our work'.
Software licenses come up every couple months, but the shop does a good job keeping the site licenses for the software that we use, and personal software is discouraged. I have a couple sets of VS8/9/10 discs that I pass to the interns and new FTEs, but have the license codes squirreled away separately -- if the site license doesn't pick them up, it's IT's problem. I've had a license expire, which was inconvenient, but had the project money for the latest version.
Code plagiarism is another concern, but a pretty easy one ~ either don't copy it, or contact the original author. Pretty straightforwards.