MremapApiTest.cpp 16.1 KB
Newer Older
M
mamingshuai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/mman.h>
#include <sys/file.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <gtest/gtest.h>
#include "log.h"
#include "utils.h"
#include "KernelConstants.h"

using namespace testing::ext;

#define MREMAP_TESTFILE "/storage/testMremap.txt"

class MremapApiTest : public testing::Test {
};

/**
 * @tc.number SUB_KERNEL_MEM_SBRK_0100
 * @tc.name   sbrk function increment 0 test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testSbrkZero, Function | MediumTest | Level2)
{
    void *mem = sbrk(0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != nullptr);
}

/**
 * @tc.number SUB_KERNEL_MEM_SBRK_0200
 * @tc.name   sbrk function errno for ENOMEM test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testSbrkENOMEM, Function | MediumTest | Level3)
{
    void *mem = sbrk(GetRandom(4096));
    LOG("mem = %p, errno = %d", mem, errno);
    ASSERT_TRUE(mem == (void *)-1);
    EXPECT_TRUE(errno == ENOMEM) << "ERROR: errno != ENOMEM, errno = " << errno << " ENOMEM = " << ENOMEM;
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0100
 * @tc.name   mremap function anonymous remap expand area test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapAnonExpand, Function | MediumTest | Level2)
{
    size_t len = PAGE_SIZE;
    size_t expandSize = len * 2;
    char testChar = 'A';
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_ANONYMOUS | MAP_PRIVATE;

    char *mem = (char *)mmap(nullptr, len, prot, flags, -1, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, expandSize, 0);
    LOG("__LINE__ = %d, mem = %p", __LINE__, mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED, expandSize = " << expandSize;

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        mem[0] = testChar;
        mem[len - 1] = testChar + 3;
        /* expand area operate test */
        mem[len + 0] = testChar;
        mem[expandSize - 1] = testChar + 3;

        LOG("mem[0] = 0x%02x", mem[0]);
        LOG("mem[len - 1] = 0x%02x", mem[len - 1]);
        LOG("mem[len + 0] = 0x%02x", mem[len + 0]);
        LOG("mem[expandSize - 1] = 0x%02x", mem[expandSize - 1]);

        exit(0);
    } else {
        WaitProcExitedOK(pid);
L
limeng 已提交
100
        EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0" << errno;
M
mamingshuai 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0200
 * @tc.name   mremap function anonymous remap shrink area test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapAnonShrink, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE * 2;
    size_t shrinkSize = len / 2;
    char testChar = 'A';
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_ANONYMOUS | MAP_PRIVATE;

    char *mem = (char *)mmap(nullptr, len, prot, flags, -1, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, shrinkSize, 0);
    LOG("__LINE__ = %d, mem = %p", __LINE__, mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED, shrinkSize = " << shrinkSize;

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        mem[0] = testChar;
        mem[shrinkSize - 1] = testChar + 3;
        LOG("mem[0] = 0x%02x", mem[0]);
        LOG("mem[shrinkSize - 1] = 0x%02x", mem[shrinkSize - 1]);
        /* this operate will cause process crash */
        mem[shrinkSize + 4] = testChar;

        exit(0);
    } else {
        ExpectProcCrashed(pid);
L
limeng 已提交
138
        EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0" << errno;
M
mamingshuai 已提交
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0300
 * @tc.name   mremap function anonymous remap and expand area to fix address test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapAnonExpandFixAddr, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE;
    size_t expandSize = len * 2;
    char testChar = 'A';
    char *fixAddr = (char *)0x27000000;
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_ANONYMOUS | MAP_PRIVATE;
    int reFlag = MREMAP_MAYMOVE | MREMAP_FIXED;

    char *mem = (char *)mmap(nullptr, len, prot, flags, -1, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, expandSize, reFlag, (void *)fixAddr);
    LOG("__LINE__ = %d, mem = %p, fixAddr = %p", __LINE__, mem, fixAddr);
    ASSERT_TRUE(mem == fixAddr) << "mem != fixAddr";

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        fixAddr[0] = testChar;
        fixAddr[len - 1] = testChar + 3;
        /* expand area operate test */
        fixAddr[len + 0] = testChar;
        fixAddr[expandSize - 1] = testChar + 3;

        LOG("fixAddr[0] = 0x%02x", fixAddr[0]);
        LOG("fixAddr[len - 1] = 0x%02x", fixAddr[len - 1]);
        LOG("fixAddr[len + 0] = 0x%02x", fixAddr[len + 0]);
        LOG("fixAddr[expandSize - 1] = 0x%02x", fixAddr[expandSize - 1]);

        exit(0);
    } else {
        WaitProcExitedOK(pid);
L
limeng 已提交
182
        EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0" << errno;
M
mamingshuai 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0400
 * @tc.name   mremap function anonymous remap and shrink area to fix address test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapAnonShrinkFixAddr, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE * 2;
    size_t shrinkSize = len / 2;
    char testChar = 'A';
    char *fixAddr = (char *)0x27000000;
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_ANONYMOUS | MAP_PRIVATE;
    int reFlag = MREMAP_MAYMOVE | MREMAP_FIXED;

    char *mem = (char *)mmap(nullptr, len, prot, flags, -1, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, shrinkSize, reFlag, (void *)fixAddr);
    LOG("__LINE__ = %d, mem = %p, fixAddr = %p", __LINE__, mem, fixAddr);
    ASSERT_TRUE(mem == fixAddr) << "mem != fixAddr";

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        fixAddr[0] = testChar;
        fixAddr[shrinkSize - 1] = testChar + 3;
        LOG("fixAddr[0] = 0x%02x", fixAddr[0]);
        LOG("fixAddr[shrinkSize - 1] = 0x%02x", fixAddr[shrinkSize - 1]);
        /* this operate will cause process crash */
        fixAddr[shrinkSize + 4] = testChar;

        exit(0);
    } else {
        ExpectProcCrashed(pid);
L
limeng 已提交
222
        EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0" <<errno;
M
mamingshuai 已提交
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0500
 * @tc.name   mremap function file remap expand area test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapFileExpand, Function | MediumTest | Level2)
{
    size_t len = PAGE_SIZE;
    size_t expandSize = len * 2;
    char testChar = 'A';
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_SHARED;
    char buf[PAGE_SIZE * 2] = {0};
    char file[] = MREMAP_TESTFILE;

    int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
    ASSERT_TRUE(fd != -1) << "ERROR: open() == -1";

    int wByte = write(fd, buf, expandSize);
    EXPECT_TRUE(wByte > 0) << "ERROR: write() <= 0";

    char *mem = (char *)mmap(nullptr, len, prot, flags, fd, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, expandSize, 0);
    LOG("__LINE__ = %d, mem = %p", __LINE__, mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED, expandSize = " << expandSize;

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        mem[0] = testChar;
        mem[len - 1] = testChar + 3;
        /* expand area operate test */
        mem[len + 0] = testChar;
        mem[expandSize - 1] = testChar + 3;
        LOG("mem[0] = 0x%02x", mem[0]);
        LOG("mem[len - 1] = 0x%02x", mem[len - 1]);
        LOG("mem[len + 0] = 0x%02x", mem[len + 0]);
        LOG("mem[expandSize - 1] = 0x%02x", mem[expandSize - 1]);

        exit(0);
    } else {
        WaitProcExitedOK(pid);
        EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0";
        EXPECT_TRUE(close(fd) != -1) << "ERROR: close() == -1";
L
limeng 已提交
273 274
        Msleep(1000);
        EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
M
mamingshuai 已提交
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0600
 * @tc.name   mremap function file remap shrink area test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapFileShrink, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE * 2;
    size_t shrinkSize = len / 2;
    char testChar = 'A';
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_SHARED;
    char buf[PAGE_SIZE * 2] = {0};
    char file[] = MREMAP_TESTFILE;

    int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
    ASSERT_TRUE(fd != -1) << "ERROR: open() == -1";

    int wByte = write(fd, buf, len);
    EXPECT_TRUE(wByte > 0) << "ERROR: write() <= 0";

    char *mem = (char *)mmap(nullptr, len, prot, flags, fd, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, shrinkSize, 0);
    LOG("__LINE__ = %d, mem = %p", __LINE__, mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED, shrinkSize = " << shrinkSize;

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        mem[0] = testChar;
        mem[shrinkSize - 1] = testChar + 3;
        LOG("mem[0] = 0x%02x", mem[0]);
        LOG("mem[shrinkSize - 1] = 0x%02x", mem[shrinkSize - 1]);

        /* this operate will cause process crash */
        mem[shrinkSize + 4] = testChar;

        exit(0);
    } else {
        ExpectProcCrashed(pid);
        EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0";
        EXPECT_TRUE(close(fd) != -1) << "ERROR: close() == -1";
L
limeng 已提交
323 324
        Msleep(1000);
        EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
M
mamingshuai 已提交
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0700
 * @tc.name   mremap function file remap and expand area to fix address test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapFileExpandFixAddr, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE;
    size_t expandSize = len * 2;
    char testChar = 'A';
    char *fixAddr = (char *)0x27000000;
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_SHARED;
    int reFlag = MREMAP_MAYMOVE | MREMAP_FIXED;
    char buf[PAGE_SIZE * 2] = {0};
    char file[] = MREMAP_TESTFILE;

    int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
    ASSERT_TRUE(fd != -1) << "ERROR: open() == -1";

    int wByte = write(fd, buf, expandSize);
    EXPECT_TRUE(wByte > 0) << "ERROR: write() <= 0";

    char *mem = (char *)mmap(nullptr, len, prot, flags, fd, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, expandSize, reFlag, (void *)fixAddr);
    LOG("__LINE__ = %d, mem = %p, fixAddr = %p", __LINE__, mem, fixAddr);
    ASSERT_TRUE(mem == fixAddr) << "mem != fixAddr";

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        fixAddr[0] = testChar;
        fixAddr[len - 1] = testChar + 3;
        /* expand area operate test */
        fixAddr[len + 0] = testChar;
        fixAddr[expandSize - 1] = testChar + 3;

        LOG("fixAddr[0] = 0x%02x", fixAddr[0]);
        LOG("fixAddr[len - 1] = 0x%02x", fixAddr[len - 1]);
        LOG("fixAddr[len + 0] = 0x%02x", fixAddr[len + 0]);
        LOG("fixAddr[expandSize - 1] = 0x%02x", fixAddr[expandSize - 1]);

        exit(0);
    } else {
        WaitProcExitedOK(pid);
        EXPECT_TRUE(munmap(mem, expandSize) == 0) << "ERROR: munmap() != 0";
        EXPECT_TRUE(close(fd) != -1) << "ERROR: close() == -1";
L
limeng 已提交
378 379
        Msleep(1000);
        EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
M
mamingshuai 已提交
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0800
 * @tc.name   mremap function file remap and shrink area to fix address test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapFileShrinkFixAddr, Function | MediumTest | Level3)
{
    size_t len = PAGE_SIZE * 2;
    size_t shrinkSize = len / 2;
    char testChar = 'A';
    char *fixAddr = (char *)0x27000000;
    int prot = PROT_READ | PROT_WRITE;
    int flags = MAP_SHARED;
    int reFlag = MREMAP_MAYMOVE | MREMAP_FIXED;

    char buf[PAGE_SIZE * 2] = {0};
    char file[] = MREMAP_TESTFILE;

    int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
    ASSERT_TRUE(fd != -1) << "ERROR: open() == -1";

    int wByte = write(fd, buf, len);
    EXPECT_TRUE(wByte > 0) << "ERROR: write() <= 0";

    char *mem = (char *)mmap(nullptr, len, prot, flags, fd, 0);
    LOG("mem = %p", mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    mem = (char *)mremap(mem, len, shrinkSize, reFlag, (void *)fixAddr);
    LOG("__LINE__ = %d, mem = %p, fixAddr = %p", __LINE__, mem, fixAddr);
    ASSERT_TRUE(mem == fixAddr) << "mem != fixAddr";

    pid_t pid = fork();
    EXPECT_TRUE(pid >= 0) << "Fork Error";
    if (pid == 0) {
        fixAddr[0] = testChar;
        fixAddr[shrinkSize - 1] = testChar + 3;
        LOG("fixAddr[0] = 0x%02x", fixAddr[0]);
        LOG("fixAddr[shrinkSize - 1] = 0x%02x", fixAddr[shrinkSize - 1]);

        /* this operate will cause process crash */
        fixAddr[shrinkSize + 4] = testChar;

        exit(0);
    } else {
        ExpectProcCrashed(pid);

        EXPECT_TRUE(munmap(mem, shrinkSize) == 0) << "ERROR: munmap() != 0";
        EXPECT_TRUE(close(fd) != -1) << "ERROR: close() == -1";
L
limeng 已提交
432 433
        Msleep(1000);
        EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
M
mamingshuai 已提交
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
    }
}

/**
 * @tc.number SUB_KERNEL_MEM_MREMAP_0900
 * @tc.name   mremap function errno for EINVAL test
 * @tc.desc   [C-L*-311] MUST NOT alter NDK API behavior.
 */
HWTEST_F(MremapApiTest, testMremapEINVAL, Function | MediumTest | Level4)
{
    void *mem = nullptr;
    void *newMem = nullptr;
    size_t len = PAGE_SIZE;
    unsigned long fixAddr = 0x27700000;

    mem = mmap((void *)fixAddr, len, PROT_READ | PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0);
    LOG("__LINE__ = %d, mem = %p", __LINE__, mem);
    ASSERT_TRUE(mem != MAP_FAILED) << "mem == MAP_FAILED";

    fixAddr |= 0x123;
    newMem = mremap((void *)fixAddr, len, len, 0);
    LOG("__LINE__ = %d, newMem = %p", __LINE__, newMem);
    EXPECT_TRUE(newMem == MAP_FAILED) << "mem != MAP_FAILED errno = " << errno;
    EXPECT_TRUE(errno == EINVAL) << "ERROR: errno != EINVAL, errno = " << errno << " EINVAL = " << EINVAL;

    newMem = mremap(mem, len, len, 0x04);
    LOG("__LINE__ = %d, newMem = %p", __LINE__, newMem);
    EXPECT_TRUE(newMem == MAP_FAILED) << "mem != MAP_FAILED errno = " << errno;
    EXPECT_TRUE(errno == EINVAL) << "ERROR: errno != EINVAL, errno = " << errno << " EINVAL = " << EINVAL;

    newMem = mremap(mem, len, 0, 0);
    LOG("__LINE__ = %d, newMem = %p", __LINE__, newMem);
    EXPECT_TRUE(newMem == MAP_FAILED) << "mem != MAP_FAILED errno = " << errno;
    EXPECT_TRUE(errno == EINVAL) << "ERROR: errno != EINVAL, errno = " << errno << " EINVAL = " << EINVAL;

    EXPECT_TRUE(munmap(mem, len) == 0) << "ERROR: munmap() != 0";

    if (newMem != MAP_FAILED && newMem != mem) {
L
limeng 已提交
472
        EXPECT_TRUE(munmap(newMem, len) == 0) << "ERROR: munmap() != 0" << errno;
M
mamingshuai 已提交
473 474
    }
}