Program: 193773
Project: 193773
Buggy source:
void dumpSharedUsersLPr(PrintWriter pw,String packageName,ArraySet<String> permissionNames,DumpState dumpState,boolean checkin){
  boolean printedSomething=false;
  for (  SharedUserSetting su : mSharedUsers.values()) {
    if (packageName != null && su != dumpState.getSharedUser()) {
      continue;
    }
    if (permissionNames != null && !su.getPermissionsState().hasRequestedPermission(permissionNames)) {
      continue;
    }
    if (!checkin) {
      if (!printedSomething) {
        if (dumpState.onTitlePrinted())         pw.println();
        pw.println("String_Node_Str");
        printedSomething=true;
      }
      pw.print("String_Node_Str");
      pw.print(su.name);
      pw.print("String_Node_Str");
      pw.print(Integer.toHexString(System.identityHashCode(su)));
      pw.println("String_Node_Str");
      String prefix="String_Node_Str";
      pw.print(prefix);
      pw.print("String_Node_Str");
      pw.println(su.userId);
      PermissionsState permissionsState=su.getPermissionsState();
      dumpInstallPermissionsLPr(pw,prefix,permissionNames,permissionsState);
      for (      int userId : UserManagerService.getInstance().getUserIds()) {
        final int[] gids=permissionsState.computeGids(userId);
        List<PermissionState> permissions=permissionsState.getRuntimePermissionStates(userId);
        if (!ArrayUtils.isEmpty(gids) || !permissions.isEmpty()) {
          pw.print(prefix);
          pw.print("String_Node_Str");
          pw.print(userId);
          pw.println("String_Node_Str");
          dumpGidsLPr(pw,prefix + "String_Node_Str",gids);
          dumpRuntimePermissionsLPr(pw,prefix + "String_Node_Str",permissionNames,permissions);
        }
      }
    }
 else {
      pw.print("String_Node_Str");
      pw.print(su.userId);
      pw.print("String_Node_Str");
      pw.println(su.name);
    }
  }
}

Fixed version (ground truth):
void dumpSharedUsersLPr(PrintWriter pw,String packageName,ArraySet<String> permissionNames,DumpState dumpState,boolean checkin){
  boolean printedSomething=false;
  for (  SharedUserSetting su : mSharedUsers.values()) {
    if (packageName != null && su != dumpState.getSharedUser()) {
      continue;
    }
    if (permissionNames != null && !su.getPermissionsState().hasRequestedPermission(permissionNames)) {
      continue;
    }
    if (!checkin) {
      if (!printedSomething) {
        if (dumpState.onTitlePrinted())         pw.println();
        pw.println("String_Node_Str");
        printedSomething=true;
      }
      pw.print("String_Node_Str");
      pw.print(su.name);
      pw.print("String_Node_Str");
      pw.print(Integer.toHexString(System.identityHashCode(su)));
      pw.println("String_Node_Str");
      String prefix="String_Node_Str";
      pw.print(prefix);
      pw.print("String_Node_Str");
      pw.println(su.userId);
      PermissionsState permissionsState=su.getPermissionsState();
      dumpInstallPermissionsLPr(pw,prefix,permissionNames,permissionsState);
      for (      int userId : UserManagerService.getInstance().getUserIds()) {
        final int[] gids=permissionsState.computeGids(userId);
        List<PermissionState> permissions=permissionsState.getRuntimePermissionStates(userId);
        if (!ArrayUtils.isEmpty(gids) || !permissions.isEmpty()) {
          pw.print(prefix);
          pw.print("String_Node_Str");
          pw.print(userId);
          pw.println("String_Node_Str");
          dumpGidsLPr(pw,prefix + "String_Node_Str",gids);
          dumpRuntimePermissionsLPr(pw,prefix + "String_Node_Str",permissionNames,permissions,packageName != null);
        }
      }
    }
 else {
      pw.print("String_Node_Str");
      pw.print(su.userId);
      pw.print("String_Node_Str");
      pw.println(su.name);
    }
  }
}