From: Craig Small Date: Thu, 3 Mar 2016 10:29:58 +0000 (+0000) Subject: Merge branch 'master' into 'master' X-Git-Tag: v3.3.12~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=666b2946b27817b05a150809c6dac60e9fe8130b;p=procps-ng Merge branch 'master' into 'master' pmap: Fix detail parsing on long mapping lines If the mapping descriptor is longer than 128 chars, the last parsed character won't be a newline even if the current buffer contains it a bit further than that. The current code always interprets it as a short fgets() read instead, and thus keeps calling fgets() until it gets a newline, dropping valid lines and failing with the following error: pmap: ERROR: inconsistent detail field in smaps file, line: Rss: 212 kB See merge request !10 --- 666b2946b27817b05a150809c6dac60e9fe8130b