pefile_test.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:pefile-tests 作者: viper-framework 项目源码 文件源码
def test_dos_header_exception_small_data(self):
        """pefile should fail parsing 64 bytes of invalid data
        (missing DOS header).
        """

        # Generate 64 bytes of zeroes
        data = b'\0' * (64)

        # Attempt to parse data and verify PE header a PEFormatError exception
        # is thrown.
        self.assertRaises(pefile.PEFormatError, pefile.PE, data=data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号