Skip to content

Instantly share code, notes, and snippets.

@rvantonder
rvantonder / all-after-strlen.txt
Last active October 1, 2019 05:42
Code matches with addition after `strlen` for the top ~100 GH repos. Searched for `strlen(:[x])+:[[y]]` and `strlen(:[x]) + :[[y]]` with comby.
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(PUCK_SERVICE) + 1
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(tmpBuf) + MDNS_LENGTH_ADD
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(tmpBuf) + MDNS_LENGTH_ADD
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(PUCK_SERVICE) + 1
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(tmpBuf) + MDNS_LENGTH_ADD
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(tmpBuf) + MDNS_LENGTH_ADD
Arduino.git-2019-09-30-23-55-25/tools/sdk/lwip/src/core/mdns.c:strlen(name) + 3
BGAQRCode-Android.git-2019-10-01-00-08-03/zbar/src/main/jni/zbar/symbol.c:strlen(type) + strlen
BGAQRCode-Android.git-2019-10-01-00-08-03/zbar/src/main/jni/zbar/error.c:strlen(func) + sizeof
BGAQRCode-Android.git-2019-10-01-00-08-03/zbar/src/main/jni/zbar/error.c:strlen(err->detail) + 1
@rvantonder
rvantonder / all-inside-strlen.txt
Last active October 1, 2019 05:42
Code matches with addition inside `strlen` for the top ~100 GH repos. Searched for `strlen(:[x]+:[[y]])` and `strlen(:[x] + :[[y]])` with comby.
FFmpeg.git-2019-09-30-23-45-37/libavcodec/h264_metadata_bsf.c:strlen(ctx->sei_user_data + i + 1)
FFmpeg.git-2019-09-30-23-45-37/libavformat/ffmetadec.c:strlen(p + 1)
FFmpeg.git-2019-09-30-23-45-37/libavformat/libopenmpt.c:strlen(ext + 1)
curl.git-2019-09-30-23-46-33/lib/vtls/vtls.c:strlen(begin_pos + 8)
curl.git-2019-09-30-23-46-33/lib/socks.c:strlen((char *)socksreq + 8)
curl.git-2019-09-30-23-46-33/tests/server/getpart.c:strlen(*buffer + offset)
fastdfs.git-2019-10-01-00-16-06/client/client_func.c:strlen(fileExtName + 1)
git.git-2019-09-30-23-45-09/config.c:strlen(key + store->baselen + 1)
git.git-2019-09-30-23-45-09/connect.c:strlen(for_pos + 5)
git.git-2019-09-30-23-45-09/sha1-name.c:strlen(real_ref + 11)
[Email]
match="Email(:[field]),"
rewrite="+ email(:[field])"
[NoValidation]
match="NoValidation(:[field]),"
rewrite="+ [|NoValidation({field: :[field]})|]"
[StringNonEmpty]
match="StringNonEmpty(:[field]),"