Merge lp:~jan-kneschke/mysql-proxy/fdlimit-int-ranges into lp:mysql-proxy
Proposed by
Jan Kneschke
Status: | Approved |
---|---|
Approved by: | Leith |
Approved revision: | 1132 |
Proposed branch: | lp:~jan-kneschke/mysql-proxy/fdlimit-int-ranges |
Merge into: | lp:mysql-proxy |
Diff against target: |
227 lines (+135/-5) 4 files modified
src/chassis-limits.c (+57/-5) tests/unit/CMakeLists.txt (+13/-0) tests/unit/Makefile.am (+12/-0) tests/unit/t_chassis_limits.c (+53/-0) |
To merge this branch: | bzr merge lp:~jan-kneschke/mysql-proxy/fdlimit-int-ranges |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leith (community) | Approve | ||
Review via email: mp+37127@code.launchpad.net |
This proposal supersedes a proposal from 2010-09-30.
Description of the change
setmaxstdio() wants a int, setrlimit() wants unsigned int of 32 or 64 size.
This patch checks that we don't cut off bits or treat negative values are large positive values and get a false positive set().
To post a comment you must log in.
Unmerged revisions
- 1132. By <email address hidden>
-
added a test for chassis_
fdlimit_ set() and check that we don't try to set values what would
be interpreted wrongly
Looks good to me.