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

Side by Side Diff: source/libvpx/vpx_mem/memory_manager/hmm_dflt_abort.c

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 11 matching lines...) Expand all
22 ** to the write system call using file handle number 2. 22 ** to the write system call using file handle number 2.
23 */ 23 */
24 #include "hmm_intrnl.h" 24 #include "hmm_intrnl.h"
25 #include <stdio.h> 25 #include <stdio.h>
26 #include <stdlib.h> 26 #include <stdlib.h>
27 27
28 static int entered = 0; 28 static int entered = 0;
29 29
30 /* Print abort message, file and line. Terminate execution. 30 /* Print abort message, file and line. Terminate execution.
31 */ 31 */
32 void hmm_dflt_abort(const char *file, const char *line) 32 void hmm_dflt_abort(const char *file, const char *line) {
33 { 33 /* Avoid use of printf(), which is more likely to use heap. */
34 /* Avoid use of printf(), which is more likely to use heap. */
35 34
36 if (entered) 35 if (entered)
37 36
38 /* The standard I/O functions called a heap function and caused 37 /* The standard I/O functions called a heap function and caused
39 ** an indirect recursive call to this function. So we'll have 38 ** an indirect recursive call to this function. So we'll have
40 ** to just exit without printing a message. */ 39 ** to just exit without printing a message. */
41 while (1); 40 while (1);
42 41
43 entered = 1; 42 entered = 1;
44 43
45 fputs("\n_abort - Heap corruption\n" "File: ", stderr); 44 fputs("\n_abort - Heap corruption\n" "File: ", stderr);
46 fputs(file, stderr); 45 fputs(file, stderr);
47 fputs(" Line: ", stderr); 46 fputs(" Line: ", stderr);
48 fputs(line, stderr); 47 fputs(line, stderr);
49 fputs("\n\n", stderr); 48 fputs("\n\n", stderr);
50 fputs("hmm_dflt_abort: while(1)!!!\n", stderr); 49 fputs("hmm_dflt_abort: while(1)!!!\n", stderr);
51 fflush(stderr); 50 fflush(stderr);
52 51
53 while (1); 52 while (1);
54 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698