argp: fix shift bug
commit06094e390b058f1318e7885b13c3b5c2aaa42927
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2017 22:39:06 +0000 (19 15:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2017 22:39:44 +0000 (19 15:39 -0700)
tree869d7c95a412ebcc767551a5c43172e59f2de3b3
parenta50e906c0c046c57938f786ffb82b36beea75043
argp: fix shift bug

* lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
behavior on shift overflow, caught by gcc -fsanitize=undefined.
ChangeLog
lib/argp-parse.c