Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 73075880 authored by Tatsuyuki Ishi's avatar Tatsuyuki Ishi
Browse files

Relax integer limits in argument handling of native Zygote loop

Previously, the picky version of atoi() would reject anything 7 digits
or more. We have many cases of 7-digit UID these days, so we need a
higher limit to make good use of native Zygote loop.

Relax this to allow parsing up to the integer type limit. This function
is only used for --setuid and --setgid parsing, and the corresponding
Java code also uses Integer.parseInt(). So we should end up having the
same limits as that (except that ours refuses to parse negative values).

Bug: 395628427
Test: manual; check absence of "forkRepeatedly terminated due to non-simple command" with Chrome
Change-Id: I621080d618a224460603d2318dd9984120c37cb4
parent 72ea9148
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment