Anything that you post to Stack Overflow will be under the terms of the Creative CommonsCreative Commons BY-SA Attribution-ShareAlike license. Depending on when you posted, a different version of the license will be used. You can find more information by looking at the bottom right of the page and clicking the cc-wiki link and by looking at the bottom left of the page and clickingin the legal link Stack Overflow terms of service.
As far as more specific legal issues, you should probably consult an attorney.