Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: third_party/ots/test/test_malicious_fonts.sh

Issue 797183002: Revert of Updating OTS repo from https://github.com/khaledhosny/ots.git (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/ots/test/table_dependencies_test.cc ('k') | third_party/ots/test/test_unmalicious_fonts.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/test/test_malicious_fonts.sh
diff --git a/third_party/ots/test/test_malicious_fonts.sh b/third_party/ots/test/test_malicious_fonts.sh
deleted file mode 100755
index 7a35f26340db1cbfc6d7235028871d6d74bd23bc..0000000000000000000000000000000000000000
--- a/third_party/ots/test/test_malicious_fonts.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Usage: ./test_malicious_fonts.sh [ttf_or_otf_file_name]
-
-BASE_DIR=~/malicious/
-CHECKER=./validator-checker
-
-if [ ! -x "$CHECKER" ] ; then
- echo "$CHECKER is not found."
- exit 1
-fi
-
-if [ $# -eq 0 ] ; then
- # No font file is specified. Apply this script to all TT/OT files under the
- # BASE_DIR.
- if [ ! -d $BASE_DIR ] ; then
- echo "$BASE_DIR does not exist."
- exit 1
- fi
-
- # Recursively call this script.
- find $BASE_DIR -type f -name '*tf' -exec "$0" {} \;
- echo
- exit 0
-fi
-
-if [ $# -gt 1 ] ; then
- echo "Usage: $0 [ttf_or_otf_file_name]"
- exit 1
-fi
-
-# Confirm that the malicious font file does not crash OTS nor OS font renderer.
-base=`basename "$1"`
-"$CHECKER" "$1" > /dev/null 2>&1 || (echo ; echo "\nFAIL: $1 (Run $CHECKER $1 for more information.)")
-echo -n "."
« no previous file with comments | « third_party/ots/test/table_dependencies_test.cc ('k') | third_party/ots/test/test_unmalicious_fonts.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698