313519
From 768358b6a80742f6be68ecd9f952f4b60614df96 Mon Sep 17 00:00:00 2001
313519
From: Eyal Itkin <eyalit@checkpoint.com>
313519
Date: Tue, 31 Mar 2020 01:55:13 -0400
313519
Subject: Typo fixes and CR cleanup in Safe-Linking
313519
313519
Removed unneeded '\' chars from end of lines and fixed some
313519
indentation issues that were introduced in the original
313519
Safe-Linking patch.
313519
313519
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
313519
313519
diff --git a/malloc/malloc.c b/malloc/malloc.c
313519
index 1282863681..0e4acb22f6 100644
313519
--- a/malloc/malloc.c
313519
+++ b/malloc/malloc.c
313519
@@ -2170,7 +2170,7 @@ do_check_malloc_state (mstate av)
313519
       while (p != 0)
313519
         {
313519
 	  if (__glibc_unlikely (!aligned_OK (p)))
313519
-	    malloc_printerr ("do_check_malloc_state(): " \
313519
+	    malloc_printerr ("do_check_malloc_state(): "
313519
 			     "unaligned fastbin chunk detected");
313519
           /* each chunk claims to be inuse */
313519
           do_check_inuse_chunk (av, p);
313519
@@ -2977,9 +2977,9 @@ tcache_thread_shutdown (void)
313519
       while (tcache_tmp->entries[i])
313519
 	{
313519
 	  tcache_entry *e = tcache_tmp->entries[i];
313519
-      if (__glibc_unlikely (!aligned_OK (e)))
313519
-	malloc_printerr ("tcache_thread_shutdown(): " \
313519
-			 "unaligned tcache chunk detected");
313519
+	  if (__glibc_unlikely (!aligned_OK (e)))
313519
+	    malloc_printerr ("tcache_thread_shutdown(): "
313519
+			     "unaligned tcache chunk detected");
313519
 	  tcache_tmp->entries[i] = REVEAL_PTR (e->next);
313519
 	  __libc_free (e);
313519
 	}
313519
@@ -4225,14 +4225,14 @@ _int_free (mstate av, mchunkptr p, int have_lock)
313519
 	    for (tmp = tcache->entries[tc_idx];
313519
 		 tmp;
313519
 		 tmp = REVEAL_PTR (tmp->next))
313519
-        {
313519
-	      if (__glibc_unlikely (!aligned_OK (tmp)))
313519
-		malloc_printerr ("free(): unaligned chunk detected in tcache 2");
313519
-	      if (tmp == e)
313519
-		malloc_printerr ("free(): double free detected in tcache 2");
313519
-	    /* If we get here, it was a coincidence.  We've wasted a
313519
-	       few cycles, but don't abort.  */
313519
-        }
313519
+	      {
313519
+		if (__glibc_unlikely (!aligned_OK (tmp)))
313519
+		  malloc_printerr ("free(): unaligned chunk detected in tcache 2");
313519
+		if (tmp == e)
313519
+		  malloc_printerr ("free(): double free detected in tcache 2");
313519
+		/* If we get here, it was a coincidence.  We've wasted a
313519
+		   few cycles, but don't abort.  */
313519
+	      }
313519
 	  }
313519
 
313519
 	if (tcache->counts[tc_idx] < mp_.tcache_count)
313519
@@ -4506,7 +4506,7 @@ static void malloc_consolidate(mstate av)
313519
       do {
313519
 	{
313519
 	  if (__glibc_unlikely (!aligned_OK (p)))
313519
-	    malloc_printerr ("malloc_consolidate(): " \
313519
+	    malloc_printerr ("malloc_consolidate(): "
313519
 			     "unaligned fastbin chunk detected");
313519
 
313519
 	  unsigned int idx = fastbin_index (chunksize (p));
313519
@@ -4938,7 +4938,7 @@ int_mallinfo (mstate av, struct mallinfo *m)
313519
 	   p = REVEAL_PTR (p->fd))
313519
         {
313519
 	  if (__glibc_unlikely (!aligned_OK (p)))
313519
-	    malloc_printerr ("int_mallinfo(): " \
313519
+	    malloc_printerr ("int_mallinfo(): "
313519
 			     "unaligned fastbin chunk detected");
313519
           ++nfastblocks;
313519
           fastavail += chunksize (p);
313519
@@ -5480,7 +5480,7 @@ __malloc_info (int options, FILE *fp)
313519
 	      while (p != NULL)
313519
 		{
313519
 		  if (__glibc_unlikely (!aligned_OK (p)))
313519
-		    malloc_printerr ("__malloc_info(): " \
313519
+		    malloc_printerr ("__malloc_info(): "
313519
 				     "unaligned fastbin chunk detected");
313519
 		  ++nthissize;
313519
 		  p = REVEAL_PTR (p->fd);