| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright 2017 The Chromium Authors. All rights reserved. | 3 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import argparse | 7 import argparse |
| 8 import os | 8 import os |
| 9 import os.path | 9 import os.path |
| 10 import shutil | 10 import shutil |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 # d. third_party/libxml/chromium/roll.py --mac | 68 # d. third_party/libxml/chromium/roll.py --mac |
| 69 # e. Make and commit any final changes to README.chromium, BUILD.gn, etc. | 69 # e. Make and commit any final changes to README.chromium, BUILD.gn, etc. |
| 70 # f. Complete the code review process as usual: git cl upload -d; | 70 # f. Complete the code review process as usual: git cl upload -d; |
| 71 # git cl try-results; etc. | 71 # git cl try-results; etc. |
| 72 | 72 |
| 73 PATCHES = [ | 73 PATCHES = [ |
| 74 'chromium-issue-599427.patch', | 74 'chromium-issue-599427.patch', |
| 75 'chromium-issue-620679.patch', | 75 'chromium-issue-620679.patch', |
| 76 'chromium-issue-628581.patch', | 76 'chromium-issue-628581.patch', |
| 77 'chromium-issue-683629.patch', | 77 'chromium-issue-683629.patch', |
| 78 'libxml2-2.9.4-security-CVE-2017-7375-xmlParsePEReference-xxe.patch', |
| 79 'libxml2-2.9.4-security-CVE-2017-7376-nanohttp-out-of-bounds-write.patch', |
| 80 'libxml2-2.9.4-security-xpath-nodetab-uaf.patch', |
| 81 'libxml2-2.9.4-xmlDumpElementContent-null-deref.patch', |
| 78 ] | 82 ] |
| 79 | 83 |
| 80 | 84 |
| 81 # See libxml2 configure.ac and win32/configure.js to learn what | 85 # See libxml2 configure.ac and win32/configure.js to learn what |
| 82 # options are available. | 86 # options are available. |
| 83 | 87 |
| 84 # These two sets of options should be in sync. You can check the | 88 # These two sets of options should be in sync. You can check the |
| 85 # generated #defines in (win32|mac|linux)/include/libxml.h to confirm | 89 # generated #defines in (win32|mac|linux)/include/libxml.h to confirm |
| 86 # this. | 90 # this. |
| 87 SHARED_XML_CONFIGURE_OPTIONS = [ | 91 SHARED_XML_CONFIGURE_OPTIONS = [ |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 libxml2_repo_path = os.path.abspath(libxml2_repo_path) | 430 libxml2_repo_path = os.path.abspath(libxml2_repo_path) |
| 427 roll_libxml_linux(src_dir, libxml2_repo_path) | 431 roll_libxml_linux(src_dir, libxml2_repo_path) |
| 428 elif args.win32: | 432 elif args.win32: |
| 429 roll_libxml_win32(src_dir) | 433 roll_libxml_win32(src_dir) |
| 430 elif args.mac: | 434 elif args.mac: |
| 431 roll_libxml_mac(src_dir) | 435 roll_libxml_mac(src_dir) |
| 432 | 436 |
| 433 | 437 |
| 434 if __name__ == '__main__': | 438 if __name__ == '__main__': |
| 435 main() | 439 main() |
| OLD | NEW |