From 8ef969fcb9995d94b2bd9b3e6b19386eee004920 Mon Sep 17 00:00:00 2001 From: amammad <77095239+amammad@users.noreply.github.com> Date: Sat, 30 Sep 2023 22:16:59 +1000 Subject: [PATCH] fix a mistake: replaces tests after gofmt --- .../frameworks/Fasthttp/OpenRedirect.expected | 4 +- .../go/frameworks/Fasthttp/SSRF.expected | 76 ++++++------ .../UntrustedRemoteFlowSource.expected | 108 +++++++++--------- .../go/frameworks/Fasthttp/Xss.expected | 22 ++-- 4 files changed, 105 insertions(+), 105 deletions(-) diff --git a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/OpenRedirect.expected b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/OpenRedirect.expected index ee4abcca9e8..da4ffb8ae8c 100644 --- a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/OpenRedirect.expected +++ b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/OpenRedirect.expected @@ -1,2 +1,2 @@ -| fasthttp.go:217:23:217:50 | "https://userControlled.com" | -| fasthttp.go:218:28:218:63 | type conversion | +| fasthttp.go:218:23:218:50 | "https://userControlled.com" | +| fasthttp.go:219:28:219:63 | type conversion | diff --git a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/SSRF.expected b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/SSRF.expected index 1d6c7a62964..42cee99d283 100644 --- a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/SSRF.expected +++ b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/SSRF.expected @@ -1,38 +1,38 @@ -| fasthttp.go:13:42:13:57 | "127.0.0.1:8909" | -| fasthttp.go:14:32:14:46 | "google.com:80" | -| fasthttp.go:15:39:15:53 | "google.com:80" | -| fasthttp.go:16:48:16:62 | "google.com:80" | -| fasthttp.go:27:24:27:46 | "http://127.0.0.1:8909" | -| fasthttp.go:28:32:28:54 | "http://127.0.0.1:8909" | -| fasthttp.go:29:31:29:53 | "http://127.0.0.1:8909" | -| fasthttp.go:30:25:30:47 | "http://127.0.0.1:8909" | -| fasthttp.go:32:14:32:16 | req | -| fasthttp.go:33:23:33:25 | req | -| fasthttp.go:34:22:34:24 | req | -| fasthttp.go:35:21:35:23 | req | -| fasthttp.go:54:26:54:48 | "http://127.0.0.1:8909" | -| fasthttp.go:55:34:55:56 | "http://127.0.0.1:8909" | -| fasthttp.go:56:33:56:55 | "http://127.0.0.1:8909" | -| fasthttp.go:57:27:57:49 | "http://127.0.0.1:8909" | -| fasthttp.go:58:16:58:18 | req | -| fasthttp.go:59:24:59:26 | req | -| fasthttp.go:60:25:60:27 | req | -| fasthttp.go:61:23:61:25 | req | -| fasthttp.go:65:14:65:16 | req | -| fasthttp.go:66:22:66:24 | req | -| fasthttp.go:67:21:67:23 | req | -| fasthttp.go:70:13:70:19 | resByte | -| fasthttp.go:71:21:71:27 | resByte | -| fasthttp.go:72:20:72:26 | resByte | -| fasthttp.go:73:14:73:20 | resByte | -| fasthttp.go:74:12:74:14 | req | -| fasthttp.go:75:20:75:22 | req | -| fasthttp.go:76:21:76:23 | req | -| fasthttp.go:77:19:77:21 | req | -| fasthttp.go:80:20:80:22 | req | -| fasthttp.go:81:28:81:30 | req | -| fasthttp.go:82:27:82:29 | req | -| fasthttp.go:85:17:85:32 | "127.0.0.1:8909" | -| fasthttp.go:86:24:86:39 | "127.0.0.1:8909" | -| fasthttp.go:87:26:87:41 | "127.0.0.1:8909" | -| fasthttp.go:88:33:88:48 | "127.0.0.1:8909" | +| fasthttp.go:14:42:14:57 | "127.0.0.1:8909" | +| fasthttp.go:15:32:15:46 | "google.com:80" | +| fasthttp.go:16:39:16:53 | "google.com:80" | +| fasthttp.go:17:48:17:62 | "google.com:80" | +| fasthttp.go:28:24:28:46 | "http://127.0.0.1:8909" | +| fasthttp.go:29:32:29:54 | "http://127.0.0.1:8909" | +| fasthttp.go:30:31:30:53 | "http://127.0.0.1:8909" | +| fasthttp.go:31:25:31:47 | "http://127.0.0.1:8909" | +| fasthttp.go:33:14:33:16 | req | +| fasthttp.go:34:23:34:25 | req | +| fasthttp.go:35:22:35:24 | req | +| fasthttp.go:36:21:36:23 | req | +| fasthttp.go:55:26:55:48 | "http://127.0.0.1:8909" | +| fasthttp.go:56:34:56:56 | "http://127.0.0.1:8909" | +| fasthttp.go:57:33:57:55 | "http://127.0.0.1:8909" | +| fasthttp.go:58:27:58:49 | "http://127.0.0.1:8909" | +| fasthttp.go:59:16:59:18 | req | +| fasthttp.go:60:24:60:26 | req | +| fasthttp.go:61:25:61:27 | req | +| fasthttp.go:62:23:62:25 | req | +| fasthttp.go:66:14:66:16 | req | +| fasthttp.go:67:22:67:24 | req | +| fasthttp.go:68:21:68:23 | req | +| fasthttp.go:71:13:71:19 | resByte | +| fasthttp.go:72:21:72:27 | resByte | +| fasthttp.go:73:20:73:26 | resByte | +| fasthttp.go:74:14:74:20 | resByte | +| fasthttp.go:75:12:75:14 | req | +| fasthttp.go:76:20:76:22 | req | +| fasthttp.go:77:21:77:23 | req | +| fasthttp.go:78:19:78:21 | req | +| fasthttp.go:81:20:81:22 | req | +| fasthttp.go:82:28:82:30 | req | +| fasthttp.go:83:27:83:29 | req | +| fasthttp.go:86:17:86:32 | "127.0.0.1:8909" | +| fasthttp.go:87:24:87:39 | "127.0.0.1:8909" | +| fasthttp.go:88:26:88:41 | "127.0.0.1:8909" | +| fasthttp.go:89:33:89:48 | "127.0.0.1:8909" | diff --git a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/UntrustedRemoteFlowSource.expected b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/UntrustedRemoteFlowSource.expected index b8d6b8a88f8..b385ba51dbb 100644 --- a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/UntrustedRemoteFlowSource.expected +++ b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/UntrustedRemoteFlowSource.expected @@ -1,54 +1,54 @@ -| fasthttp.go:102:15:102:53 | call to Peek | -| fasthttp.go:119:23:119:31 | dstWriter | -| fasthttp.go:120:3:120:24 | call to Header | -| fasthttp.go:121:3:121:31 | call to TrailerHeader | -| fasthttp.go:123:3:123:28 | call to RequestURI | -| fasthttp.go:124:3:124:22 | call to Host | -| fasthttp.go:125:3:125:27 | call to UserAgent | -| fasthttp.go:126:3:126:33 | call to ContentEncoding | -| fasthttp.go:127:3:127:29 | call to ContentType | -| fasthttp.go:128:3:128:33 | call to Cookie | -| fasthttp.go:129:3:129:46 | call to CookieBytes | -| fasthttp.go:130:3:130:39 | call to MultipartFormBoundary | -| fasthttp.go:131:3:131:35 | call to Peek | -| fasthttp.go:132:3:132:38 | call to PeekAll | -| fasthttp.go:133:3:133:48 | call to PeekBytes | -| fasthttp.go:134:3:134:26 | call to PeekKeys | -| fasthttp.go:135:3:135:33 | call to PeekTrailerKeys | -| fasthttp.go:136:3:136:25 | call to Referer | -| fasthttp.go:137:3:137:28 | call to RawHeaders | -| fasthttp.go:140:3:140:25 | call to Path | -| fasthttp.go:141:3:141:33 | call to PathOriginal | -| fasthttp.go:144:3:144:28 | call to FullURI | -| fasthttp.go:145:3:145:36 | call to LastPathSegment | -| fasthttp.go:146:3:146:32 | call to QueryString | -| fasthttp.go:147:3:147:27 | call to String | -| fasthttp.go:148:28:148:36 | dstWriter | -| fasthttp.go:153:3:153:43 | call to Peek | -| fasthttp.go:154:3:154:56 | call to PeekBytes | -| fasthttp.go:155:3:155:48 | call to PeekMulti | -| fasthttp.go:156:3:156:61 | call to PeekMultiBytes | -| fasthttp.go:157:3:157:44 | call to QueryString | -| fasthttp.go:158:3:158:39 | call to String | -| fasthttp.go:159:40:159:48 | dstWriter | -| fasthttp.go:163:3:163:19 | call to Path | -| fasthttp.go:167:3:167:22 | call to Referer | -| fasthttp.go:168:3:168:23 | call to PostBody | -| fasthttp.go:169:3:169:32 | call to RequestBodyStream | -| fasthttp.go:170:3:170:25 | call to RequestURI | -| fasthttp.go:171:3:171:24 | call to UserAgent | -| fasthttp.go:172:3:172:19 | call to Host | -| fasthttp.go:174:3:174:27 | call to Host | -| fasthttp.go:175:3:175:27 | call to Body | -| fasthttp.go:176:3:176:33 | call to RequestURI | -| fasthttp.go:177:3:177:33 | call to BodyGunzip | -| fasthttp.go:178:3:178:34 | call to BodyInflate | -| fasthttp.go:179:3:179:35 | call to BodyUnbrotli | -| fasthttp.go:180:3:180:33 | call to BodyStream | -| fasthttp.go:181:34:181:42 | dstWriter | -| fasthttp.go:182:30:182:38 | dstWriter | -| fasthttp.go:183:3:183:39 | call to BodyUncompressed | -| fasthttp.go:184:31:184:39 | dstReader | -| fasthttp.go:185:36:185:44 | dstReader | -| fasthttp.go:186:45:186:53 | dstReader | -| fasthttp.go:187:39:187:47 | dstReader | +| fasthttp.go:103:15:103:53 | call to Peek | +| fasthttp.go:120:23:120:31 | dstWriter | +| fasthttp.go:121:3:121:24 | call to Header | +| fasthttp.go:122:3:122:31 | call to TrailerHeader | +| fasthttp.go:124:3:124:28 | call to RequestURI | +| fasthttp.go:125:3:125:22 | call to Host | +| fasthttp.go:126:3:126:27 | call to UserAgent | +| fasthttp.go:127:3:127:33 | call to ContentEncoding | +| fasthttp.go:128:3:128:29 | call to ContentType | +| fasthttp.go:129:3:129:33 | call to Cookie | +| fasthttp.go:130:3:130:46 | call to CookieBytes | +| fasthttp.go:131:3:131:39 | call to MultipartFormBoundary | +| fasthttp.go:132:3:132:35 | call to Peek | +| fasthttp.go:133:3:133:38 | call to PeekAll | +| fasthttp.go:134:3:134:48 | call to PeekBytes | +| fasthttp.go:135:3:135:26 | call to PeekKeys | +| fasthttp.go:136:3:136:33 | call to PeekTrailerKeys | +| fasthttp.go:137:3:137:25 | call to Referer | +| fasthttp.go:138:3:138:28 | call to RawHeaders | +| fasthttp.go:141:3:141:25 | call to Path | +| fasthttp.go:142:3:142:33 | call to PathOriginal | +| fasthttp.go:145:3:145:28 | call to FullURI | +| fasthttp.go:146:3:146:36 | call to LastPathSegment | +| fasthttp.go:147:3:147:32 | call to QueryString | +| fasthttp.go:148:3:148:27 | call to String | +| fasthttp.go:149:28:149:36 | dstWriter | +| fasthttp.go:154:3:154:43 | call to Peek | +| fasthttp.go:155:3:155:56 | call to PeekBytes | +| fasthttp.go:156:3:156:48 | call to PeekMulti | +| fasthttp.go:157:3:157:61 | call to PeekMultiBytes | +| fasthttp.go:158:3:158:44 | call to QueryString | +| fasthttp.go:159:3:159:39 | call to String | +| fasthttp.go:160:40:160:48 | dstWriter | +| fasthttp.go:164:3:164:19 | call to Path | +| fasthttp.go:168:3:168:22 | call to Referer | +| fasthttp.go:169:3:169:23 | call to PostBody | +| fasthttp.go:170:3:170:32 | call to RequestBodyStream | +| fasthttp.go:171:3:171:25 | call to RequestURI | +| fasthttp.go:172:3:172:24 | call to UserAgent | +| fasthttp.go:173:3:173:19 | call to Host | +| fasthttp.go:175:3:175:27 | call to Host | +| fasthttp.go:176:3:176:27 | call to Body | +| fasthttp.go:177:3:177:33 | call to RequestURI | +| fasthttp.go:178:3:178:33 | call to BodyGunzip | +| fasthttp.go:179:3:179:34 | call to BodyInflate | +| fasthttp.go:180:3:180:35 | call to BodyUnbrotli | +| fasthttp.go:181:3:181:33 | call to BodyStream | +| fasthttp.go:182:34:182:42 | dstWriter | +| fasthttp.go:183:30:183:38 | dstWriter | +| fasthttp.go:184:3:184:39 | call to BodyUncompressed | +| fasthttp.go:185:31:185:39 | dstReader | +| fasthttp.go:186:36:186:44 | dstReader | +| fasthttp.go:187:45:187:53 | dstReader | +| fasthttp.go:188:39:188:47 | dstReader | diff --git a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/Xss.expected b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/Xss.expected index 18141050693..c1e273ec40d 100644 --- a/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/Xss.expected +++ b/go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/Xss.expected @@ -1,11 +1,11 @@ -| fasthttp.go:193:34:193:58 | type conversion | -| fasthttp.go:194:40:194:56 | "user Controlled" | -| fasthttp.go:197:31:197:55 | type conversion | -| fasthttp.go:198:37:198:53 | "user Controlled" | -| fasthttp.go:199:34:199:58 | type conversion | -| fasthttp.go:200:37:200:45 | dstReader | -| fasthttp.go:206:26:206:39 | type conversion | -| fasthttp.go:207:32:207:37 | "body" | -| fasthttp.go:212:34:212:90 | call to AppendQuotedArg | -| fasthttp.go:213:34:213:83 | call to AppendHTMLEscape | -| fasthttp.go:214:34:214:96 | call to AppendHTMLEscapeBytes | +| fasthttp.go:194:34:194:58 | type conversion | +| fasthttp.go:195:40:195:56 | "user Controlled" | +| fasthttp.go:198:31:198:55 | type conversion | +| fasthttp.go:199:37:199:53 | "user Controlled" | +| fasthttp.go:200:34:200:58 | type conversion | +| fasthttp.go:201:37:201:45 | dstReader | +| fasthttp.go:207:26:207:39 | type conversion | +| fasthttp.go:208:32:208:37 | "body" | +| fasthttp.go:213:34:213:90 | call to AppendQuotedArg | +| fasthttp.go:214:34:214:83 | call to AppendHTMLEscape | +| fasthttp.go:215:34:215:96 | call to AppendHTMLEscapeBytes |