Patch release: fixes a crash when input contains null bytes inside a <meta charset> declaration.
Bug Fixes
- Fixed
ValueError: embedded null charactercrash when input contained a<meta charset>declaration with a null byte in the encoding name (e.g.b'<meta charset="\x00utf-8">').codecs.lookup()raisesValueErroron embedded nulls, andlookup_encoding()was only catchingLookupError. Also added defensiveValueErrorcatches in_validate_bytes()and_to_utf8()for completeness. (#369, thanks @DRMacIver for the report)
Full Changelog: 7.4.2...7.4.3