New Defects reported by Coverity Scan for LyX

Kornel Benko kornel at lyx.org
Wed Jul 8 13:32:06 UTC 2020


Am Wed, 8 Jul 2020 14:53:49 +0200
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> >>>     CID 360530:  Error handling issues  (CHECKED_RETURN)
> >>>     Calling "regex_match" without checking return value (as is done elsewhere 48
> >>> out of 49 times).  
> 1194     			std::regex_match(tag, match, tagRegex);
> 1195     1196     			if (toDocBookTag.find(match[1]) == 

I wonder why the use of std::regex_match()?

We use
	#include "support/regex.h"
the correct is either
	lyx::regex_match()
or
	regex_match()
in the lyx namespace.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200708/3c6002bb/attachment.asc>


More information about the lyx-devel mailing list