#1823·Aegis

otpauth:// URI 中的负数引发 ArithmeticException 程序崩溃

作者: woolcoxm创建于 2026年8月5日更新于 2026年8月5日

总结

一个具有 负数 digits 参数的 otpauth:// URI 会导致 Aegis 在应用尝试生成该条目的代码时崩溃,并抛出未捕获的 ArithmeticException(整数模运算为零)。digits 值会从 URI 中读取,并存储,没有任何范围验证。

重现步骤

  1. 创建/共享包含负数 digits 值的二维码(或发送 otpauth:// 意图),例如:

内容来源: beemdevelopment/Aegis