Skip to content

identify() seg.faults (PR#4057)

1 message · Roger Bivand

#
Full_Name: Roger Bivand
Version: 1.7.1
OS: i686-pc-linux-gnu
Submission from: (NULL) (129.177.30.18)


identify() seg.faults when x is an empty list, when the n argument is given a
positive value, avoiding the check for non-positive n (n <- length(x) when x is
the non-existent x component of the empty list, and when neither x nor y are
components of the list.

suggested resolution: add test in plot.c around line 3010
Segmentation fault

but
Error in identify.default(xy) : invalid number of points in identify

I'm not sure, but adding a check against zero-length and/or NULL x and or 
y about line 3010 in src/main/plot.c should catch this.