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

Do not segfault in svd(a) with VT.size > INT_MAX #20349

Merged
merged 2 commits into from Mar 28, 2024
Merged

Commits on Mar 28, 2024

  1. BUG: linalg: avoid a segfault in ?gesdd

    linalg.svd with too large matrices may segfault if
    max(m, n)*max(m, n) > int_max on large-memory machines (on smaller memory machines
    it may fail with a MemoryError instead). The root cause is an integer overflow
    in indexing 2D arrays, deep in the LAPACK code.
    Thus, detect a possible error condition and bail out early.
    ev-br committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    ddb3964 View commit details
    Browse the repository at this point in the history
  2. Update scipy/linalg/_decomp_svd.py

    Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
    ev-br and pearu committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b810fdb View commit details
    Browse the repository at this point in the history