imginfo.py 文件源码

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

项目:cache-leak-detector 作者: falsecurity 项目源码 文件源码
def getSection(self, Address):

        # find
        idx = numpy.argwhere(self._SectionsFast[:]['Start'] <= Address).flatten()
        if len(idx) == 0:
            return None

        # check
        if Address < self._SectionsFast[idx[-1]]['Start'] + \
           self._SectionsFast[idx[-1]]['Size']:
            return (self._Sections[self._SectionsFast[idx[-1]]['Start']])
        else:
            return None

    ##
    # Get symbol from given address.
    #
    #   @param Address address within image
    #   @return the symbol of the address (None if error)
    #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号