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

Fix default size of maxcontentramcachescansize option in configs/e2guardian.conf.in #704

Conversation

sunweaver
Copy link
Contributor

@sunweaver sunweaver commented Nov 15, 2021

While looking at Debian bug report https://bugs.debian.org/998430 I spotted two flaws in the upstream code.

First flaw is that maxcontentramcachescansize's default value never gets initialized (first patch in this PR).

Second flaw is that if it would get initialized correctly, it would get initialized to a value that is lower than maxcontentfiltersize. However, for maxcontentfiltersize the documentation says:

# The [maxcontentfiltersize] value must not be higher than maxcontentramcachescansize

However, maxcontentfiltersize is 2048 by default, whereas maxcontentramcachescansize is only 2000 by default.

…s of maxcontentfiltersize and maxcontentramcachesize obey to the requirements in the (inline) documentation.

 See Debian bug https://bugs.debian.org/998430 (which is a little hard to
 read, but the reported issue could be confirmed).
@sunweaver
Copy link
Contributor Author

While looking at Debian bug report https://bugs.debian.org/998430 I spotted two flaws in the upstream code.

First flaw is that maxcontentramcachescansize's default value never gets initialized (first patch in this PR).

Second flaw is that if it would get initialized correctly, it would get initialized to a value that is lower than maxcontentfiltersize. However, for maxcontentfiltersize the documentation says:

# The [maxcontentfiltersize] value must not be higher than maxcontentramcachescansize

However, maxcontentfiltersize is 2048 by default, whereas maxcontentramcachescansize is only 2000 by default.

I think this issue never popped up, because the non-initialized maxcontentramcachescansize masked the second (2048 no <= 2000) problem.

@philipianpearce philipianpearce merged commit 2cd0e86 into e2guardian:v5.4 Nov 16, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants