My understanding is that your liability is what you make it. If you undertake a legal contract to deliver X, then you are liable to deliver that, and in that case the clauses about quality that Evernoob mentioned may come into practise.
However, you can also protect yourself with clauses such this one, which appears at the top of many open source licenses:
THIS SOFTWARE IS PROVIDED BY
''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL
BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
That's not to say that you should use this particular clause, especially not in a commercial contract. However, it's an example of what can be achieved. No sensible freelance programmer / graphics artist / whatever would enter into an employment arrangement without a contract. This contract can contain clauses that limit, or remove your liability. Depending on the industry you're working on, you may be able to get away with more or less in this department.