string_helpers.c (cfecea6ead5f15880fc1fb31fc655f8be5cf7424) | string_helpers.c (c430f60036af44079170ff71a461b9d7cf5ee431) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Helpers for formatting and printing strings 4 * 5 * Copyright 31 August 2008 James Bottomley 6 * Copyright (C) 2013, Intel Corporation 7 */ 8#include <linux/bug.h> --- 869 unchanged lines hidden (view full) --- 878{ 879 for (; *s; ++s) 880 if (*s == old) 881 *s = new; 882 return s; 883} 884EXPORT_SYMBOL(strreplace); 885 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Helpers for formatting and printing strings 4 * 5 * Copyright 31 August 2008 James Bottomley 6 * Copyright (C) 2013, Intel Corporation 7 */ 8#include <linux/bug.h> --- 869 unchanged lines hidden (view full) --- 878{ 879 for (; *s; ++s) 880 if (*s == old) 881 *s = new; 882 return s; 883} 884EXPORT_SYMBOL(strreplace); 885 |
886#ifdef CONFIG_FORTIFY_SOURCE |
|
886void fortify_panic(const char *name) 887{ 888 pr_emerg("detected buffer overflow in %s\n", name); 889 BUG(); 890} 891EXPORT_SYMBOL(fortify_panic); | 887void fortify_panic(const char *name) 888{ 889 pr_emerg("detected buffer overflow in %s\n", name); 890 BUG(); 891} 892EXPORT_SYMBOL(fortify_panic); |
893#endif /* CONFIG_FORTIFY_SOURCE */ |
|