Opened 7 years ago

Closed 7 years ago

#13861 closed defect (fixed)

Segmentation fault in prime_phi

Reported by: vbraun Owned by: was
Priority: major Milestone: sage-5.7
Component: number theory Keywords:
Cc: Merged in: sage-5.7.beta0
Authors: Volker Braun Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

This has been discussed at #13731, the self.primes array is allocated too short.

Attachments (1)

trac_13861_prime_phi_segfault.patch (754 bytes) - added by vbraun 7 years ago.
Initial patch

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by vbraun

Initial patch

comment:1 Changed 7 years ago by vbraun

With the patch I don't get any error in electric fence any more.

comment:2 Changed 7 years ago by vbraun

  • Authors set to Volker Braun
  • Status changed from new to needs_review

comment:3 Changed 7 years ago by jdemeyer

  • Milestone changed from sage-5.6 to sage-5.7
  • Reviewers set to Jeroen Demeyer
  • Status changed from needs_review to positive_review

There is still room for improvement in this function (checking return value of sage_malloc()), but this is good enough for now.

comment:4 Changed 7 years ago by jdemeyer

  • Merged in set to sage-5.7.beta0
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.