elm code - handle alloc failure for line split
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 31 Jul 2017 03:00:45 +0000 (12:00 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 31 Jul 2017 03:00:45 +0000 (12:00 +0900)
commitd639063b507b3339095edb3c0b685c03b1b293fd
tree39c069670527898fdaf900b94d9f609d06381b65
parent6e82f90807e19993a77a007e4ce0a9dbcd082d9b
elm code - handle alloc failure for line split

this culd optentially use large offsets before accessing the ptr thus
it may not segv inthe first page but actually work if positionoffsets
are large enouh, so handle this case explicitly.

@fix

found by PVS studio
src/lib/elementary/elm_code_line.c