Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug ? #414

Open
Sererim opened this issue Jun 26, 2024 · 0 comments
Open

A bug ? #414

Sererim opened this issue Jun 26, 2024 · 0 comments

Comments

@Sererim
Copy link

Sererim commented Jun 26, 2024

I was reading the me_cleaner.py and i think i found a bug
In RegionFile class

 def read(self, n):
        if f.tell() + n <= self.region_end:
            return self.f.read(n)
        else:
            raise OutOfRegionException()

    def readinto(self, b):
        if f.tell() + len(b) <= self.region_end:
            return self.f.readinto(b)
        else:
            raise OutOfRegionException()

Why these methods work if f is undefined ?

I looked into it removed the argparser part and initilized the class and tried to use method read and pyton threw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant