Leser: 31
![]() |
|< 1 ... 60 61 62 63 64 65 66 ... 93 >| | ![]() |
923 Einträge, 93 Seiten |
Quote+ // Google mods
+ const char* allowed_host = \"video.google.com\";
+ char * host_found = strstr(p_sys->url.psz_host, allowed_host);
+ if ((host_found == NULL) ||
+ ((host_found + strlen(allowed_host)) !=
+ (p_sys->url.psz_host + strlen(p_sys->url.psz_host)))) {
+ msg_Warn( p_access, \"invalid host, only video.google.com is allowed\" );
+ goto error;
+ }
I'm disappointed by Google's use of the 'goto' keyword. As was clearly described in this paper [acm.org], the use of 'goto' leads to "swiss-cheesing" of the brain, the inability to think logically, and a plethora of other problems, leading eventually to brain-rot and inability to write code in anything but Perl.
I think we should all remember that just because Google is the pinnacle of success and is second only to (insert your diety here), Google too can make mistakes.
![]() |
|< 1 ... 60 61 62 63 64 65 66 ... 93 >| | ![]() |
923 Einträge, 93 Seiten |