[GRASS-git] [OSGeo/grass] c3ad63: v.random: Fix segfault as per bug #1024 (#1025)

Māris Nartišs noreply at github.com
Mon Oct 26 02:54:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: c3ad638ef5ed7c73bd0f72ea0a86690841e8b0bb
      https://github.com/OSGeo/grass/commit/c3ad638ef5ed7c73bd0f72ea0a86690841e8b0bb
  Author: Māris Nartišs <mn at sungis.lv>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

  Changed paths:
    M vector/v.random/main.c

  Log Message:
  -----------
  v.random: Fix segfault as per bug #1024 (#1025)

cats_array memory is allocated only when fields for parm.input->answer are > 0

Co-authored-by: Māris Nartišs <maris.nartiss at lu.lv>




More information about the grass-commit mailing list