[CVE-2014-3482] Check against bit string values using multiline regexp

Fix CVE-2014-3482.