Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8480

[Rust] There is no check for allocation failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

      Reported by bluss on Github:

      https://github.com/rust-ndarray/ndarray/issues/771

       

      "What I can see, there is no check for allocation success, so any buffer can be created with a null pointer, which leads to soundness problems in most methods. Best look into using std::alloc::handle_alloc_error or alternatives. (This problem means that the mutablebuffer is not a safe abstraction, and it should preferably not be exposed as public API like this.)"

      Attachments

        Issue Links

          Activity

            People

              vertexclique Mahmut Bulut
              paddyhoran Paddy Horan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h