Added a few input checks which prevent odbcserver crash if it's executed
and supplied incorrect data to stdin. A crash example:

echo -en "\x0\x0\x0\x1\x0" | ./odbcserver