Re: [BUG] invalid-shift-base umaskcmd() src/miscbltin.c:258:26

Herbert Xu <[email protected]> Mon, 16 Mar 2026 08:27:41 +0900
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Aleksander Ushakov <[email protected]> wrote:
> I encountered a bug in Dash 0.5.13 and would like to report
> it. The details are  provided below.
> # # miscbltin.c:258:26: runtime error: left shift of 1073741823 by 3

While this is true I don't think it's really a problem.  You're giving
umask a value that doesn't fit into a 32-bit integer, which is why it
overflowed.

Thanks,
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt